AbstractSelector.select

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

Note: This representation of timeout is not always accurate, so it is possible that the function will return with a timeout before the specified period. For more accuracy, use the TimeSpan version.

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

Parameters

timeout double

the maximum amount of time in seconds 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.

Meta