]> git.bitcoin.ninja Git - rust-lightning/commit
Add a utility to poll multiple futures simultaneously
authorMatt Corallo <git@bluematt.me>
Fri, 10 May 2024 20:49:30 +0000 (20:49 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 10 May 2024 21:29:53 +0000 (21:29 +0000)
commit98022e6d6d2f8756abd82d1ebcf29f2e292e3983
treeb5409878bf07e97fd5582a7bcd081d9c0163b8e7
parent20f2dab5c0c7d72d1d9835edf3a043b755b05af8
Add a utility to poll multiple futures simultaneously

If we have a handful of futures we want to make progress on
simultaneously we need some way to poll all of them in series,
which we add here in the form of `MultiFuturePoller`. Its probably
not as effecient as some of the options in the `futures` crate, but
it is very trivial and not that bad.
lightning/src/util/async_poll.rs [new file with mode: 0644]
lightning/src/util/mod.rs