registerPortWithName method

bool registerPortWithName (SendPort port, String name)

Registers a SendPort with a given name. Returns true if registration is successful, false if the name entry already exists.

port and name must not be null.

Implementation

static bool registerPortWithName(SendPort port, String name) {
  assert(port != null, "'port' cannot be null.");
  assert(name != null, "'name' cannot be null.");
  return _registerPortWithName(port, name);
}