AsynchronousChannelGroup.AwaitTermination(Int64, TimeUnit) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Awaits termination of the group.
[Android.Runtime.Register("awaitTermination", "(JLjava/util/concurrent/TimeUnit;)Z", "GetAwaitTermination_JLjava_util_concurrent_TimeUnit_Handler", ApiSince=26)]
public abstract bool AwaitTermination (long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("awaitTermination", "(JLjava/util/concurrent/TimeUnit;)Z", "GetAwaitTermination_JLjava_util_concurrent_TimeUnit_Handler", ApiSince=26)>]
abstract member AwaitTermination : int64 * Java.Util.Concurrent.TimeUnit -> bool
Parameters
- timeout
- Int64
The maximum time to wait, or zero or less to not wait
- unit
- TimeUnit
The time unit of the timeout argument
Returns
true
if the group has terminated; false
if the
timeout elapsed before termination
- Attributes
Remarks
Awaits termination of the group.
This method blocks until the group has terminated, or the timeout occurs, or the current thread is interrupted, whichever happens first.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.