API reference
Preparing search index…

SocketSelector

Wait asynchronously for a set of sockets to become ready, retaining the results of the latest wait.

Source & inheritance
Member directory10

Constructors

Properties

Methods

Constructors

Properties

Receive: Receive = ReadinessType.Receive

Receive-ready bit flag.

Source & inheritance
Send: Send = ReadinessType.Send

Send-ready bit flag.

Source & inheritance

Methods

  • Synchronously call registered callbacks for ready entries in the last wait.

    Returns

    void
    Source & inheritance
  • Remove a socket and its readiness results, returning whether it was registered; wake any pending wait.

    Parameters

    socket

    Returns

    boolean
    Source & inheritance
  • Wait asynchronously and refresh the readiness snapshot. Time.Zero disables the timeout; return whether any entry is ready. Concurrent wait calls are not allowed.

    Parameters

    timeout
    ReadonlyValue = Time.Zero

    Returns

    Promise<boolean>
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0