pub fn start_on_background_runtime(pact: Pact) -> ValidatingMockServer {
        let runtime = tokio::runtime::Builder::new()
            .core_threads(1)
            .blocking_threads(1)
            .build()
            .unwrap();

        let executor = runtime.executor();

        ValidatingMockServer::with_mode_and_future_consumer(pact, Mode::Background(runtime), |future| {
            executor.spawn(future)
        })
    }
/// Create a new mock server which handles requests as described in the
/// pact, and runs in a background thread
Create a new mock server which handles requests as described in the
pact, and runs in a background thread
Create a new mock server which handles requests as described in the pact and runs in a background thread
pub fn start_on_background_runtime(pact: Pact) -> ValidatingMockServer {
        let runtime = tokio::runtime::Builder::new()
            .core_threads(1)
            .blocking_threads(1)
            .build()
            .unwrap();
        let executor = runtime.executor();
        ValidatingMockServer::with_mode_and_future_consumer(pact, Mode::Background(runtime), |future| {
            executor.spawn(future)
        })
    }
pub fn start_on_background_runtime ( pact : Pact ) -> ValidatingMockServer { let runtime = tokio :: runtime :: Builder :: new ( ) . core_threads ( 1 ) . blocking_threads ( 1 ) . build ( ) . unwrap ( ) ; let executor = runtime . executor ( ) ; ValidatingMockServer :: with_mode_and_future_consumer ( pact , Mode :: Background ( runtime ) , | future | { executor . spawn ( future ) } ) }
Create a new mock server which handles requests as described in the
pact, and runs in a background thread
Create a new mock server which handles requests as described in the pact and runs in a background thread
pact
Pact
pact
Pact