Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

run circleci for #626#633

Merged
cfallin merged 6 commits intomainfrom
pch/custom-run-async-future
Feb 19, 2021
Merged

run circleci for #626#633
cfallin merged 6 commits intomainfrom
pch/custom-run-async-future

Conversation

@pchickey
Copy link
Contributor

No description provided.

By replacing the expected yield value from a Box<PhantomData<T>> to
TypeId, it becomes possible to resume instance execution when the size
of a boxed type is unknown and cannot be passed as an argument.

This makes it possible to yield and resume from an async context by
passing the resumption value through RunAsyncState.

Finally, we have to check that the context didn't change between
resumption within try_block_on, in order to make sure the right Waker
is scheduled and the future will be resumed when it is ready.
@pchickey pchickey force-pushed the pch/custom-run-async-future branch from 2b80350 to 4773acb Compare February 19, 2021 01:23
@cfallin cfallin merged commit 4773acb into main Feb 19, 2021
@cfallin cfallin deleted the pch/custom-run-async-future branch February 19, 2021 23:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants