In PR #35 notifications are all dispatched using a Task.Supervisor which is the right way to go!
Unfortunately not all possible use cases are covered.
Example:
A user might want to dispatch a stream of notifications using Task.Supervisor.async_stream/4 which is currently not provided!
The solution to this kind of problems which could easily arise, it did for me, is to provide a function that is totally synchronous and is not run under the context of a Task or a Task.Supervisor.
This way users can easily use whatever method, either a Task or a Task.Supervisor, which suits their use case better
In PR #35 notifications are all dispatched using a Task.Supervisor which is the right way to go! Unfortunately not all possible use cases are covered.
Example: A user might want to dispatch a stream of notifications using Task.Supervisor.async_stream/4 which is currently not provided!
The solution to this kind of problems which could easily arise, it did for me, is to provide a function that is totally synchronous and is not run under the context of a Task or a Task.Supervisor.
This way users can easily use whatever method, either a Task or a Task.Supervisor, which suits their use case better