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

Async actor function? #1

Closed
yiv opened this issue Mar 27, 2023 · 1 comment
Closed

Async actor function? #1

yiv opened this issue Mar 27, 2023 · 1 comment

Comments

@yiv
Copy link

yiv commented Mar 27, 2023

No description provided.

@hominee
Copy link
Owner

hominee commented Mar 27, 2023

the short answer is yes, crossbus supports future routine. but to put it more precisely, crossbus follows a similar pattern to deal with future as actix/ yew. if you wanna run a async function

async fn run() {
    // do stuff here
}

you can

for a more general type like Stream, Message Stream, Delayed Timer or Blocking wait (sleep),
crossbus has straight support for them, you can just follow the document or see the
integration tests
as a reference

@yiv yiv closed this as completed Mar 27, 2023
@hominee hominee mentioned this issue Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants