Skip to content

Commit

Permalink
f Add comment to OptionalSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 30, 2024
1 parent df38fd5 commit e3ed93b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lightning-background-processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ pub(crate) mod futures_util {
}
}

/// A selector that takes a future wrapped in an option that will be polled if it is `Some` and
/// will always be pending otherwise.
pub(crate) struct OptionalSelector<F: Future<Output = ()> + Unpin> {
pub optional_future: Option<F>,
}
Expand Down

0 comments on commit e3ed93b

Please sign in to comment.