https://github.com/brainstorm/noodles_async_fail
Bug report(s) for Async Noodles
https://github.com/brainstorm/noodles_async_fail
Last synced: 11 months ago
JSON representation
Bug report(s) for Async Noodles
- Host: GitHub
- URL: https://github.com/brainstorm/noodles_async_fail
- Owner: brainstorm
- Created: 2021-07-29T05:39:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T05:54:11.000Z (almost 5 years ago)
- Last Synced: 2025-04-03T01:17:08.137Z (about 1 year ago)
- Language: Rust
- Homepage: https://github.com/zaeleus/noodles/issues/34
- Size: 2.42 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VirtualPosition seeking different between Blocking vs Async
Reusing this same repo for another issue: https://github.com/zaeleus/noodles/issues/35
# Why U not Send, Noodles?
EDIT: Fixed [upstream in Noodles](https://github.com/zaeleus/noodles/issues/34).
```rust
error: future cannot be sent between threads safely
--> src/main.rs:8:3
|
8 | tokio::spawn(async move {
| ^^^^^^^^^^^^ future created by async block is not `Send`
|
::: /Users/rvalls/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.9.0/src/task/spawn.rs:127:21
|
127 | T: Future + Send + 'static,
| ---- required by this bound in `tokio::spawn`
|
= help: the trait `Send` is not implemented for `(dyn Future> + 'static)`
note: captured value is not `Send`
--> src/main.rs:9:5
|
9 | reader.read_reference_sequences().await;
| ^^^^^^ has type `noodles_bam::AsyncReader` which is not `Send`
error: aborting due to previous error
error: could not compile `noodles_async_fail`
To learn more, run the command again with --verbose.
```