IAsyncResult.Wait

Wait for the task to finish for up to the specified number of milliseconds, or until a message is pending the message queue, depending on WakeFlags parameter.

Syntax Parameters Return Value
Function IAsyncResult.Wait( _
    milliSeconds As Long, _
    Optional WakeFlags As Long = 0) As WakeReason
  • milliSeconds [in]

Type: Long

  • WakeFlags [in, optional]

Type:Long

Default value: 0

WakeReason