Writes an element to a One Element Stream channel. The endpoint waits if the channel is full.


icon

Inputs/Outputs

  • ci32.png timeout in ms (-1)

    timeout in ms is the time, in milliseconds, that this endpoint has to write the specified data to the channel. The default value is -1, which means there is no time limit.

  • cbool.png element valid? (T)

    element valid? specifies whether the element is valid. If TRUE, the endpoint records the element valid? flag. If FALSE, the endpoint ignores the value of element. The endpoint does nothing if both element valid? and last element? are FALSE. The default is TRUE.

  • csgl.png element

    element specifies the data to write to the channel.

  • cbool.png last element? (F)

    last element? specifies whether this is the last element that the endpoint writes to the channel. The default is FALSE. If TRUE, the endpoint marks the channel as closed and ignores further calls to write. The reader endpoint can continue reading data until the last element? output of the reader endpoint returns TRUE.

  • ibool.png timed out?

    timed out? returns TRUE if the amount of time specified by timeout in ms elapses before the endpoint writes the data specified in element to the channel.

  • iqueuern.png channel

    channel is the channel wire that connects this endpoint to a reader endpoint.