AbstractSelector.select

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

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

Parameters

timeout TimeSpan

TimeSpan with the maximum amount of time that the selector will wait for events from the conduits; the amount of time is relative to the current system time (i.e. just the number of milliseconds that the selector has to wait for the events).

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.

Meta