Closed maxfischer2781 closed 7 years ago
The current interface has some shortcomings:
__next__
__next__()
send(None)
Suggested new interface:
send(value)
push(value)
pull(value)
send
Done with 46b96ee1603f0bb5581daccb5b58efc17e9e4925/v0.10.0. Chainlets must define chainlet_send for handling values.
chainlet_send
The current interface has some shortcomings:
__next__
cannot take any parameters, it must be used inside the chainlet.__next__()
is equivalent tosend(None)
.Suggested new interface:
send(value)
, which is consistent with the generator interface.__next__()
is equivalent tosend(None)
.push(value)
andpull(value)
which usesend
to process their input.