AbstractSelector.Begin 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.
Marks the beginning of an I/O operation that might block indefinitely.
[Android.Runtime.Register("begin", "()V", "")]
protected void Begin ();
[<Android.Runtime.Register("begin", "()V", "")>]
member this.Begin : unit -> unit
- Attributes
Remarks
Marks the beginning of an I/O operation that might block indefinitely.
This method should be invoked in tandem with the #end end
method, using a try
... finally
block as shown above, in order to implement interruption for this selector.
Invoking this method arranges for the selector's Selector#wakeup wakeup
method to be invoked if a thread's Thread#interrupt interrupt
method is invoked while the thread is blocked in an I/O operation upon the selector.
Java documentation for java.nio.channels.spi.AbstractSelector.begin()
.
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.