Store (async)
Last updated
Last updated
[data/Store (async)]
Stores data and sends it via data
when read. When the store is empty, read attempts will be buffered until the store gets initialized via data
.
Example: late initialization
null@1 received via read
null@2 received via read
"hello"@3 received via data
"hello"@1 sent via data
(output)
"hello"@2 sent via data
(output)
Keywords: variable, container, buffer, data, async
data: any
Receives contents of the store. San be set as parameter, or received as signal. When received as a signal, will complete previous read attempts.
read: any
Receives a signal that triggers the contents being sent via data
(output). When store has no content yet, read signals will be buffered until a signal is received via data
.
data: any
Sends store contents.
written: null
Sends signal when contents were set in flow.
not found: null
Sends signal on read attempt while store has no content.