WorkerThreadPoolWaitFinish Method (Int32) |
Waits until all threads finished processing (the workitem queue is empty).
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax public bool WaitFinish(
int millis
)
Public Function WaitFinish (
millis As Integer
) As Boolean
public:
bool WaitFinish(
int millis
)
member WaitFinish :
millis : int -> bool
Parameters
- millis
- Type: SystemInt32
The timeout in milliseconds.
Return Value
Type:
Booleantrue if threads finished processing within timespan, false otherwise
Remarks Might 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