Skip to content

Commit e3ed93b

Browse files
committed
f Add comment to OptionalSelector
1 parent df38fd5 commit e3ed93b

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ pub(crate) mod futures_util {
547547
}
548548
}
549549

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.
550552
pub(crate) struct OptionalSelector<F: Future<Output = ()> + Unpin> {
551553
pub optional_future: Option<F>,
552554
}

0 commit comments

Comments
 (0)