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

what if we don't care the response of async execute , but it should be complete #303

Open
ghost opened this issue Jul 5, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2022

For golang , we can execute go routine , and leave it . the request can be done early, but the background go routine will continue execute.

for a short example

func HelloHttpHandle() {
   //execute a background job, like send notify to user, via sms or email.
    go func();
  // the request will complete soon, return json to user http client
   return json;
}

even when the function return json, the function complete.
but the background go rountine ,continue to execute , till it's end.

can scala-async do the same thing?

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

0 participants