Functions - lang.stream

publish

Publishes data to the stream.

subscribe

Subscribes to data from the stream.

publish

Publishes data to the stream.

Parameters

  • strm stream
  • the stream to publish to

  • data PureType
  • data to be published to the stream

    Each subscriber receives a separate clone of the data.

subscribe

Subscribes to data from the stream.

Parameters

  • strm stream
  • the stream to subscribe to

  • func function(PureType) returns (())
  • the function pointer for the subscription, which will be invoked with data published to the stream