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
Describe the bug
Unable to use .poll_next() on a Channel<Option>.
To Reproduce
Steps to reproduce the behavior:
Add crate whisk, version 0.11.0, with features futures_core
Add crate tokio, version 1.28.2, features: rt-multi-thread, macros
Create channel with Channel::new()
clone channel and give clone to tokio async task (two runtimes?, am not using async::main)
no method 'poll_next' found for struct 'Channel<Option>' (the original channel pointer)
Expected behavior
the method 'poll_next' returns an option within a for loop:
Some(VideoUpdate)
or None for channel has been cleared
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Linux 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Additional context
I am pretty new to programming but I imagine there could be some conflicts between two async runtimes pasts and tokio,
I aim for my crate to be easily made nostd, but also trying to balance that with readability to a client who does not understand
the details, so using tokio's task and writing it like a thread spawn with task::spawn is very nice, and I would love to be able to
understand more about how I would create a similar interface using only pasts as nostd is the end goal.
The text was updated successfully, but these errors were encountered:
Just tried it without tokio, just using pasts::Executor which wasn't so hard to dress up. Same error, I suppose I am just not understanding Streams somehow.
understand more about how I would create a similar interface using only pasts as nostd is the end goal.
I just realized that whisk has a bug, where if you enable the pasts feature, whisk won't run on no-std anymore (because it pulls in the pasts/std feature). I'll work on fixing it and making a no-std example.
understand more about how I would create a similar interface using only pasts as nostd is the end goal.
I just realized that whisk has a bug, where if you enable the pasts feature, whisk won't run on no-std anymore (because it pulls in the pasts/std feature). I'll work on fixing it and making a no-std example.
I fixed the bug, and released whisk 0.12.0. Also created a no-std binary example here.
Describe the bug
Unable to use .poll_next() on a Channel<Option>.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the method 'poll_next' returns an option within a for loop:
Some(VideoUpdate)
or None for channel has been cleared
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Linux 5.15.0-71-generic #78~20.04.1-Ubuntu SMP Wed Apr 19 11:26:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Additional context
I am pretty new to programming but I imagine there could be some conflicts between two async runtimes pasts and tokio,
I aim for my crate to be easily made nostd, but also trying to balance that with readability to a client who does not understand
the details, so using tokio's task and writing it like a thread spawn with task::spawn is very nice, and I would love to be able to
understand more about how I would create a similar interface using only pasts as nostd is the end goal.
The text was updated successfully, but these errors were encountered: