Fix (and test) `Future` creation after a `Notifier` was notified 2022-10-fix-pre-notified-future
authorMatt Corallo <git@bluematt.me>
Thu, 6 Oct 2022 23:54:52 +0000 (23:54 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 6 Oct 2022 23:54:52 +0000 (23:54 +0000)
commitcf3471f8ad70fed7ce588fe0053df1b88a9804dc
treef8ac307fc55544257c997d5bc67ac65377a1f999
parent7544030bb63fee6484fc178bb2ac8f382fe3b5b1
Fix (and test) `Future` creation after a `Notifier` was notified

After a `Notifier` has been `notify`'d, attempts to `get_future`
should return a `Future` which is pre-completed, however this was
not the case.

This commit simply fixes the behavior, adding a test to demonstrate
the issue.
lightning/src/util/wakers.rs