I'd like to be able to return a promise like as in javascript to be able to complete a job later.
It seems channel::oneshot from future-rs can do the job, but I can't find it in the std lib.
If you are using Tokio, you should be using the oneshot channel from Tokio: link. If you are outside of the async world, use either the mpsc channel from std, or the channel from crossbeam.
It seems Promise like implementation is missing for async/await in rust.
I need to try tokio oneshot because future-rs oneshot is not compatible with async/await in rust.
So for now, async/await is unusable in rust for me as a newbie without a good promise implementation as in javascript.