You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep, the following test reproduces the issue: read() works once then hangs on the next. Run cargo test resource_test -- --nocapture against deno_core's testing crate after adding this test to reproduce.
async{letmut lock = RcRef::map(self, |this| &this.rx).borrow_mut().await;// Note that we're holding a slice across an await point, so this code is very much not safelet res = lock.read(&mut buf).await?;Ok((res, buf))}.boxed_local()
It's worth checking whether this can be reproduced with other Resource implementers, but I'll leave that to someone who knows more about these internals than myself!
You'll see this in the console:
then the test doesn't even complete.
Originally posted by @aunyks in denoland/deno#22767 (comment)
The text was updated successfully, but these errors were encountered: