Fork me on GitHub
#missionary
<
2022-07-14
>
Dustin Getz13:07:37

Constructing a raw missionary flow (note: no missionary dependency, because Missionary's flow interface is dependency-free)

👍 2
leonoel14:07:53

yes, but a flow must eventually terminate

leonoel14:07:42

call t synchronously on deref and that's a perfectly valid flow

Dustin Getz14:07:17

It's intended to be continuous, do I really have to terminate?

Dustin Getz14:07:30

what does (m/cp 42) do

leonoel14:07:59

it does exactly that : notify, then terminate on deref

leonoel14:07:10

if you don't terminate, consumers will assume the process is still holding resources and wait forever

Dustin Getz14:07:38

IIUC, signaling terminate will notify again, causing the consumer to await a terminal value, which means here we would see 42 a second time

leonoel14:07:33

a consumer must not call deref after terminate

Dustin Getz14:07:03

ok, so the first 42 is the terminal value