Udostępnij za pośrednictwem


Selector.Open Method

Definition

Opens a selector.

[Android.Runtime.Register("open", "()Ljava/nio/channels/Selector;", "")]
public static Java.Nio.Channels.Selector? Open ();
[<Android.Runtime.Register("open", "()Ljava/nio/channels/Selector;", "")>]
static member Open : unit -> Java.Nio.Channels.Selector

Returns

A new selector

Attributes

Exceptions

if an I/O error occurs.

Remarks

Opens a selector.

The new selector is created by invoking the java.nio.channels.spi.SelectorProvider#openSelector openSelector method of the system-wide default java.nio.channels.spi.SelectorProvider object.

Java documentation for java.nio.channels.Selector.open().

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.

Applies to