Home
last modified time | relevance | path

Searched refs:sleep (Results 1 – 24 of 24) sorted by relevance

/tonic/examples/src/dynamic_load_balance/
H A Dclient.rs26 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
31 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
36 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
42 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
48 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
55 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
64 tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; in main()
/tonic/interop/
H A Dtest.sh58 sleep 1
73 sleep 1
/tonic/tonic/src/transport/service/
H A Dgrpc_timeout.rs60 sleep: timeout_duration.map(tokio::time::sleep), in call()
70 sleep: Option<Sleep>, field
87 if let Some(sleep) = this.sleep.as_pin_mut() { in poll()
88 ready!(sleep.poll(cx)); in poll()
/tonic/tests/integration_tests/tests/
H A Dconnection.rs55 tokio::time::sleep(Duration::from_millis(100)).await; in connect_returns_err_via_call_after_connected()
62 tokio::time::sleep(Duration::from_millis(100)).await; in connect_returns_err_via_call_after_connected()
105 tokio::time::sleep(Duration::from_millis(100)).await; in connect_lazy_reconnects_after_first_failure()
109 tokio::time::sleep(Duration::from_millis(100)).await; in connect_lazy_reconnects_after_first_failure()
H A Dhttp2_keep_alive.rs36 tokio::time::sleep(Duration::from_millis(100)).await; in http2_keepalive_does_not_cause_panics()
66 tokio::time::sleep(Duration::from_millis(100)).await; in http2_keepalive_does_not_cause_panics_on_client_side()
H A Dstatus.rs49 tokio::time::sleep(Duration::from_millis(100)).await; in status_with_details()
107 tokio::time::sleep(Duration::from_millis(100)).await; in status_with_metadata()
178 tokio::time::sleep(Duration::from_millis(100)).await; in status_from_server_stream()
248 tokio::time::sleep(Duration::from_millis(100)).await; in message_and_then_status_from_server_stream()
H A Dextensions.rs54 tokio::time::sleep(Duration::from_millis(100)).await; in setting_extension_from_interceptor()
103 tokio::time::sleep(Duration::from_millis(100)).await; in setting_extension_from_tower()
H A Duser_agent.rs39 tokio::time::sleep(Duration::from_millis(100)).await; in writes_user_agent_header()
H A Dinterceptor.rs54 tokio::time::sleep(Duration::from_millis(100)).await; in interceptor_retrieves_grpc_method()
H A Dhttp2_max_header_list_size.rs49 tokio::time::sleep(Duration::from_millis(100)).await; in test_http_max_header_list_size_and_long_errors()
H A Dclient_layer.rs58 tokio::time::sleep(Duration::from_millis(100)).await; in connect_supports_standard_tower_layers()
H A Dtimeout.rs72 tokio::time::sleep(self.latency).await; in run_service_in_background()
H A Dorigin.rs47 tokio::time::sleep(Duration::from_millis(100)).await; in writes_origin_header()
H A Droutes_builder.rs72 tokio::time::sleep(Duration::from_millis(100)).await; in multiple_service_using_routes_builder()
H A Dconnect_info.rs43 tokio::time::sleep(Duration::from_millis(100)).await; in getting_connect_info()
/tonic/examples/src/cancellation/
H A Dserver.rs10 use tokio::time::sleep;
31 sleep(Duration::from_secs(10)).await; in say_hello()
/tonic/tonic-reflection/tests/
H A Dversions.rs82 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_v1_request()
139 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_v1alpha_request()
H A Dserver.rs118 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_test_reflection_request()
/tonic/examples/src/health/
H A DREADME.md12 sleep 1
H A Dserver.rs36 tokio::time::sleep(Duration::from_secs(1)).await; in twiddle_service_status()
/tonic/examples/src/streaming/
H A Dclient.rs72 tokio::time::sleep(Duration::from_secs(1)).await; //do not mess server println functions in main()
/tonic/interop/src/
H A Dserver.rs74 tokio::time::sleep(Duration::from_micros(param.interval_us as u64)).await; in streaming_output_call()
129 tokio::time::sleep(Duration::from_micros(param.interval_us as u64)).await; in full_duplex_call()
/tonic/tonic/src/transport/server/
H A Dmod.rs65 use tokio::time::sleep;
791 let sleep = sleep_or_pending(max_connection_age); in serve_connection() localVariable
792 tokio::pin!(sleep); in serve_connection()
802 _ = &mut sleep => { in serve_connection()
804 sleep.set(sleep_or_pending(None)); in serve_connection()
820 Some(wait) => sleep(wait).await, in sleep_or_pending()
/tonic/tests/web/tests/
H A Dgrpc.rs134 tokio::time::sleep(Duration::from_millis(30)).await; in spawn()