Join Slack
Powered by
If you define a function that does something long,...
# codingconventions
e
elizarov
11/09/2017, 1:05 PM
If you define a function that does something long, but instead of suspending or blocking, it immediately returns a future, then suffix its name with
Async
. In summary: *
send
— suspending *
sendBlocking
— blocks a thread *
sendAsync
— immediately returns a future
👍 8
👌 2
2
Views
Open in Slack
Previous
Next