CancellableBlockingCollection.WaitForCompletion Method (Int32)
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.Collections
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)
Usage
'Usage
Dim instance As CancellableBlockingCollection(Of T)
Dim timeout As Integer
Dim returnValue As Boolean
returnValue = instance.WaitForCompletion(timeout)
Syntax
'Declaration
Public Function WaitForCompletion ( _
timeout As Integer _
) As Boolean
public bool WaitForCompletion (
int timeout
)
public:
bool WaitForCompletion (
int timeout
)
public boolean WaitForCompletion (
int timeout
)
public function WaitForCompletion (
timeout : int
) : boolean
Parameters
- timeout
Return Value
Returns Boolean.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
CancellableBlockingCollection Generic Class
CancellableBlockingCollection Members
Microsoft.OneGet.Utility.Collections Namespace