mirror of
https://github.com/fafhrd91/actix-net
synced 2025-02-17 13:33:31 +01:00
fmt
This commit is contained in:
parent
1c5a0a7c11
commit
fd59f21281
@ -100,7 +100,7 @@ impl ArbiterHandle {
|
|||||||
self.tx.send(ArbiterCommand::Stop).is_ok()
|
self.tx.send(ArbiterCommand::Stop).is_ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Will wait for [Arbiter] to complete all commands up until it's Stop command is processed.
|
/// Will wait for associated [Arbiter] to complete all commands up until it is stopped.
|
||||||
///
|
///
|
||||||
/// For [Arbiter]s that have already stopped, the future will resolve immediately.
|
/// For [Arbiter]s that have already stopped, the future will resolve immediately.
|
||||||
///
|
///
|
||||||
|
@ -5,15 +5,12 @@ use std::{
|
|||||||
|
|
||||||
use actix_rt::{time, Arbiter, System};
|
use actix_rt::{time, Arbiter, System};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
fn no_system_arbiter_new_panic() {
|
fn no_system_arbiter_new_panic() {
|
||||||
Arbiter::new();
|
Arbiter::new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn join_arbiter_wait_fut() {
|
fn join_arbiter_wait_fut() {
|
||||||
let time = Duration::from_secs(1);
|
let time = Duration::from_secs(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user