Real-Serious-Games / C-Sharp-Promise

Promises library for C# for management of asynchronous operations.
MIT License
1.19k stars 149 forks source link

Promise Queue? #96

Closed tmilker closed 5 years ago

tmilker commented 5 years ago

Is it possible to build a promise queue like http://erictrinh.com/posts/promise-queues ? Any examples?

I've been using this library for my game and it has worked great but I'm communicating with a Bluetooth device it would be useful if my promises could wait for other, on-going promises to finish before new commands are issued(through promises). I don't see anything in the documentation about chaining multiple promises that aren't all connected at one call location. Is that even possible with this?

ashleydavis commented 5 years ago

Check out the section on Promise.sequence in my article. It could be what you are looking for.

tmilker commented 5 years ago

Thanks. I'll have to do some thinking about how I could integrate that.