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
#2641 (comment) Ping here. We might want to further trim it.. A trait with just one method is much easier to stabilize for 1.0. Need to explore and see if this is actually possible or not.
trait runtime
spawn_background_job(fn);
thread implementation:
Create dedicated thread
tokio implementation:
tokio:spawn_blocking
We also need to consider #2697 (comment) otherwise, internal-logs won't flow unless global_tracing_subscriber is enabled. @Sushisource's suggestion to accept a thread-start hook is reasonable, and can be achieved with the above model - user decides how the background job is done, and they can decide to setup thread-local tracing_subscriber or global or do nothing.
Parent issue to track:
runtime
and associated trait from behind experimental feature flag. This requires thoroughly reviewing the public API and trim any excess.runtime
trait. (And keep it default)The text was updated successfully, but these errors were encountered: