Support tokio for platforms without multi-threading support#12
Support tokio for platforms without multi-threading support#12futursolo wants to merge 3 commits into
Conversation
ranile
left a comment
There was a problem hiding this comment.
Would be nice to have tests for it, if none already test for this functionality
|
After some consideration, I think it is not possible to replicate the behaviour described in test use prokio::Runtime;
let runtime = Runtime::default();
runtime.spawn_pinned(|| async {
tokio::spawn(async {
prokio::spawn_local(async {
// Despite running within prokio runtime,
// this does not work without dedicated worker thread.
});
});
});For now, I think it is better to assume outside-runtime behaviour for prokio. Since most web frameworks in tokio uses |
Description
@langyo
This pull request consists of the following changes:
Checklist
CHANGELOG.md.