We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d170ba commit 718ab54Copy full SHA for 718ab54
lightning-background-processor/src/lib.rs
@@ -411,6 +411,9 @@ pub(crate) mod futures_util {
411
}
412
413
414
+ // If we want to poll a future without an async context to figure out if it has completed or
415
+ // not without awaiting, we need a Waker, which needs a vtable...we fill it with dummy values
416
+ // but sadly there's a good bit of boilerplate here.
417
fn dummy_waker_clone(_: *const ()) -> RawWaker { RawWaker::new(core::ptr::null(), &DUMMY_WAKER_VTABLE) }
418
fn dummy_waker_action(_: *const ()) { }
419
0 commit comments