ChannelDatabin

ChannelDatabin

is an option to ChannelListen that specifies a databin in which to store incoming messages.

Details

  • A channel databin persists even after the listener that provided data is removed.
  • The following settings can be used:
  • Automaticrecord received data in a new databin
    binrecord data in the specified databin
    Nonedo not record data in a databin
  • The databin created with listener=ChannelListen[,ChannelDatabin->Automatic] can be retrieved with listener["Databin"].

Examples

open allclose all

Basic Examples  (1)

Start listening on a channel, storing incoming messages in a new databin:

In[1]:=
Click for copyable input
Out[1]=

Send a few messages to the channel:

In[2]:=
Click for copyable input
Out[2]=

The databin associated with the channel:

In[3]:=
Click for copyable input
Out[3]=

Messages stored in the databin:

In[4]:=
Click for copyable input
Out[4]=

Databin entries persist after the listener is removed:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=

Scope  (2)

Properties & Relations  (2)

See Also

Databin  ChannelSend  ChannelListen  CreateChannel  DatabinAdd  ChannelReceiverFunction  ChannelBrokerAction

Introduced in 2016
(11.0)