Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/coroutine.rs
Co-authored-by: David Hewitt <[email protected]>
  • Loading branch information
wyfo and davidhewitt authored Apr 15, 2025
commit c3881d8593b0a0f1f8c4a0c7c7f15982763a6a85
2 changes: 1 addition & 1 deletion src/coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl Coroutine {
}
// create a new waker, or try to reset it in place
if let Some(waker) = self.waker.as_mut().and_then(Arc::get_mut) {
waker.reset(op);
*waker = CoroutineWaker::new(op);
} else {
self.waker = Some(Arc::new(CoroutineWaker::new(op)));
}
Expand Down