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

ChannelPair constructor

*<Null safety>*

ChannelPair()

Implementation

factory ChannelPair() {
  final HandlePairResult result = System.channelCreate();
  if (result.status == ZX.OK) {
    return ChannelPair._(
        result.status, Channel(result.first), Channel(result.second));
  } else {
    return ChannelPair._(result.status, null, null);
  }
}