Skip to content

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

Open
@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions