You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dispatch logic ignores NoSubscriber when it is the thread-local subscriber.
Having the default per-thread subscriber forward to the global subscriber makes sense, but should use a purpose-built sentinel value. Otherwise NoSubscriber isn't usable and doesn't work as documented (with_subscriber, set_subscriber, with_dispatcher, set_dispatcher all work at the thread level and won't have the desired effect).
The dispatch logic ignores NoSubscriber when it is the thread-local subscriber.
Having the default per-thread subscriber forward to the global subscriber makes sense, but should use a purpose-built sentinel value. Otherwise NoSubscriber isn't usable and doesn't work as documented (with_subscriber, set_subscriber, with_dispatcher, set_dispatcher all work at the thread level and won't have the desired effect).
Discovered while working on tokio-rs/console#314.
The text was updated successfully, but these errors were encountered: