-
Notifications
You must be signed in to change notification settings - Fork 15
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
Async Handlers #98
Comments
Some useful notes:
|
If #96 (comment) is true, in particular
Then I'm not sure it makes sense to have an async option at all, as in most A way this might work is to asynchronously format the record for all its loggers, then asynchronously send the formatted string to their emit(handler::DefaultHandler{F, O}, rec::Record) -> emit(handler::DefaultHandler{F, O}, rec::Record, formatted_str) Which I'm not sure we want to do? |
That's exactly where we'd want to use |
Rather having loggers asynchronously calling handlers, we should allow handlers to take an async argument during construction which allows it to control how messages are asynchronously emitted.
The text was updated successfully, but these errors were encountered: