Skip to main content

API

TransportWorkerโ€‹

Declaration
class TransportWorker {
bool get active
int get id
int get descriptor
TransportServersFactory get servers
TransportClientsFactory get clients
TransportFilesFactory get files
TransportWorker(SendPort toTransport)
Future<void> initialize() async
}

Propertiesโ€‹

activeโ€‹

Worker live status.

idโ€‹

Worker number (incremented by Transport).

descriptorโ€‹

io_uring fd.

serversโ€‹

Factory for a server creation.

clientsโ€‹

Factory for a client creation.

filesโ€‹

Factory for file creation.

Methodsโ€‹

initializeโ€‹

  1. Creates native memory-mapped objects
  2. Creates and sets up io_uring buffers and io_uring structures
  3. Runs event loop

Referencesโ€‹