getPublishChannel<T> method

Channel<T> getPublishChannel<T>(
  1. String moduleId,
  2. String channelId,
  3. T inst
)

Implementation

Channel<T> getPublishChannel<T>(
    String moduleId, String channelId, T inst) {
  final mutator = _setupChannel<T>(moduleId, channelId, inst, true);
  final pubChan = Channel<T>(moduleId, channelId, mutator, this, ChannelAccessRights.WRITE, null);
  _chanInstances[channelId] = inst;
  print('Pub: $moduleId : $channelId');
  return pubChan;
}