Skip to content

Commit 718ab54

Browse files
committed
f comment
1 parent 7d170ba commit 718ab54

File tree

1 file changed

+3
-0
lines changed
  • lightning-background-processor/src

1 file changed

+3
-0
lines changed

lightning-background-processor/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ pub(crate) mod futures_util {
411411
}
412412
}
413413

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.
414417
fn dummy_waker_clone(_: *const ()) -> RawWaker { RawWaker::new(core::ptr::null(), &DUMMY_WAKER_VTABLE) }
415418
fn dummy_waker_action(_: *const ()) { }
416419

0 commit comments

Comments
 (0)