RegistryManager constructor

RegistryManager({
  1. Duration timeout = const Duration(seconds: 5),
})

Create a new registry managed by the created RegistryManager.

The optional timeout parameter can be set to the duration registry objects should wait before assuming that an operation has failed.

Implementation

RegistryManager({Duration timeout = const Duration(seconds: 5)})
    : _timeout = timeout,
      _commandPort = RawReceivePort() {
  _commandPort.handler = _handleCommand;
}