Google is committed to advancing racial equity for Black communities. See how.

connectToService method

  • @override

Future<void> connectToService (String serviceName, Channel channel)

See fidl.ServiceProvider#connectToService.

Implementation

@override
Future<void> connectToService(String serviceName, Channel channel) async {
  final connectorThunk = _connectorThunks[serviceName];
  if (connectorThunk != null) {
    connectorThunk(channel);
  } else {
    channel.close();
  }
}