TSocketNotifier.attach

Atatches the socket notifier to the specified awaitable, causing it to write a byte to the notification socket when the awaitable callbacks are invoked.

If the event has already been triggered, the dummy byte is written immediately to the socket.

A socket notifier can only be attached to a single awaitable at a time.

class TSocketNotifier
void
attach

Throws

TException if the socket notifier is already attached.

Meta