Skip to content

Commit

Permalink
fix: pin streams
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz committed Jan 7, 2025
1 parent b49b032 commit 91377e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/platforms/macos/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ pub async fn subscribe() -> Result<impl futures_lite::Stream<Item = Mode>, Error
}
}
});
Ok(stream)
Ok(Box::pin(stream))
}
2 changes: 1 addition & 1 deletion src/platforms/websys/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ pub async fn subscribe() -> Result<impl futures_lite::Stream<Item = crate::Mode>
}
}
});
Ok(stream)
Ok(Box::pin(stream))
}
2 changes: 1 addition & 1 deletion src/platforms/windows/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ pub async fn subscribe() -> Result<impl futures_lite::Stream<Item = crate::Mode>
}
}
});
Ok(stream)
Ok(Box::pin(stream))
}

0 comments on commit 91377e9

Please sign in to comment.