mads-core 0.9.2

Framework-neutral dependency injection, configuration, and lifecycle core for MADS.rs
Documentation
1
2
3
4
5
6
7
8
9
10
//! Integration tests for the optional Tokio runtime bootstrap.

#![cfg(feature = "runtime-tokio")]

#[test]
fn tokio_runtime_runs_a_future_to_completion() {
    let result = mads_core::runtime::block_on(async { 42 });

    assert_eq!(result, 42);
}