Refactor proc macros, add more knobs by vorot93 · Pull Request #2022 · tokio-rs/tokio (original) (raw)

This PR contains general refactoring of #[tokio::main] and #[tokio::test] macros along with additional core_threads and max_threads knobs.

Note: core_threads knob sets the runtime to threaded or basic depending on the value. Current threaded_scheduler and basic_scheduler knobs are only retained for compatibility with existing code and are overridden if core_threads is set.