#ElixirLang devs, do you use any naming conventions for async calls?
It’d be handy to quickly tell if a given function call finishes everything before the next one, or whether it starts some background tasks that need to be taken into account.
#ergonomiccode
It’d be handy to quickly tell if a given function call finishes everything before the next one, or whether it starts some background tasks that need to be taken into account.
#ergonomiccode
Comments
Then again it depends what you mean by “async” calls
Bamboo (the email library) has
- deliver/1
- deliver_later/1
Take a call like `Games.finish(game)` followed by something like `Notifications.broadcast_score(game)` on the very next line.
Does `finish/1` do anything async, like sending a message to a process? Would be great to know.
If it was something you could control, then it should probably return a task which you can then wait on.