staltz / callbag-share

👜 Callbag operator that broadcasts a single source to multiple sinks
MIT License
22 stars 3 forks source link

Sync source that immediately shares its first item causes misbehavior #1

Closed erikras closed 6 years ago

erikras commented 6 years ago

If you have a source that immediately – and synchronously! – sends a 1 (data) message immediately after the 0 (start) message, the callbag-share callbag will pass along the 1 before the 0, which seems....broken.

Quoth the holy spec:

  • A callbag MUST NOT be delivered data before it has been greeted

Edit Callbag-Share Bug Demo