paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

Async/Await support for Off-chain Workers #5212

Open tomusdrw opened 4 years ago

tomusdrw commented 4 years ago

Offchain workshop follow up task.

We have identified that it would be possible to introduce Futures and kernel-like epoll mechanism to offchain workers to later on facilitate async/await kind of workflows.

Currently the main use case is http calls, but in the future this could enable other tasks that can be executed in parallel (like networking or workers (#1459), etc).

CC @Xanewok @drahnr

Initial implementation: https://github.com/paritytech/substrate/tree/igor-ocw-async

Xanewok commented 4 years ago

I'd like to start hacking on it, beginning with our WIP implementation done thus far

Xanewok commented 4 years ago

PoC implementation opened at #6723.