0no-co / wonka

🎩 A tiny but capable push & pull stream library for TypeScript and Flow
MIT License
709 stars 29 forks source link

[Question] Ability to use async await for locking async handlers. #93

Closed wtrocki closed 2 years ago

wtrocki commented 4 years ago

I have been using a pipe from the subscriptions and in subscription, I need to execute some async operation that should lock the handling from other subscriptions.

Basically I do not want to have situation where subscriptions will clash.

in Docs we saying:

also similar to IxJS since Wonka streams will run synchronously if an iterable source runs synchronously.

In this case subscriptions are async. Would subscribe handle async and wait or it will be ignored?