WorkerThreadPoolWaitFinish(Int32) Method |
Waits until all threads finished processing (the workitem queue is empty).
Namespace: Jam.ShellAssembly: ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.2
Syntaxpublic bool WaitFinish(
int millis
)
Public Function WaitFinish (
millis As Integer
) As Boolean
public:
bool WaitFinish(
int millis
)
member WaitFinish :
millis : int -> bool Parameters
- millis Int32
- The timeout in milliseconds.
Return Value
Booleantrue if threads finished processing within timespan, false otherwise
RemarksMight immediately return if the workitem queue has already been empty without anyone waiting for it. (The AutoResetEvent is still signalled in this case).
See Also