We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OptionalSelector
1 parent df38fd5 commit e3ed93bCopy full SHA for e3ed93b
lightning-background-processor/src/lib.rs
@@ -547,6 +547,8 @@ pub(crate) mod futures_util {
547
}
548
549
550
+ /// A selector that takes a future wrapped in an option that will be polled if it is `Some` and
551
+ /// will always be pending otherwise.
552
pub(crate) struct OptionalSelector<F: Future<Output = ()> + Unpin> {
553
pub optional_future: Option<F>,
554
0 commit comments