JensRavens/Interstellar

Why does wait() throw?

schwa opened this issue · 2 comments

schwa commented

Why does wait throw an error or return a value instead of returning a result? This makes it very hard to use wait while continuing to process signals.

wait() was supposed to be the end of a chain of async transforms - kind of a bridging between Interstellar and the usual Swift error handling, just as flatMap also takes a throwing function to get into the Interstellar world. Do you see any use case for waiting and then continuing to process something?

schwa commented

I think an example of usage would come in very handy. I understand how it works now but it took me a while to get it.