Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for rust green thread await async ? #110

Open
toplinuxsir opened this issue May 11, 2021 · 1 comment
Open

Example for rust green thread await async ? #110

toplinuxsir opened this issue May 11, 2021 · 1 comment
Labels

Comments

@toplinuxsir
Copy link

toplinuxsir commented May 11, 2021

Any Example for rust green thread await async ?
Thanks!

@SonnyX
Copy link
Contributor

SonnyX commented May 11, 2021

personally I pass a tokio::runtime::Handle to whatever impl Handler, that way I can use that Handle to spawn a new future by a call, and use callback functions from TIS in order to finally resolve these promises.

see: https://github.com/TotemArts/Launcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants