Skip to content

Commit

Permalink
Add doc comment to StreamGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed May 30, 2024
1 parent 0484d93 commit dfbc117
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lighthouse-client/src/utils/stream_guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::{pin::Pin, task::{Context, Poll}};
use futures::Stream;
use pin_project::{pin_project, pinned_drop};

/// A stream wrapper that automatically runs a closure when dropped.
#[pin_project(PinnedDrop)]
pub struct StreamGuard<S, F> where S: Stream + Unpin, F: FnOnce() {
#[pin]
Expand Down

0 comments on commit dfbc117

Please sign in to comment.