AbstractSelector.select

Wait for I/O events from the registered conduits for a specified amount of time.

  1. int select()
    class AbstractSelector
    int
    select
    ()
  2. int select(double timeout)
  3. int select(TimeSpan timeout)

Return Value

Type: int

The amount of conduits that have received events; 0 if no conduits have received events within the specified timeout; and -1 if the wakeup() method has been called from another thread.

Remarks: This method is the same as calling select(TimeSpan.max).

Meta