示例#1
0
 await funcAsync(server, server.Address).WaitAsync(TimeSpan.FromMilliseconds(millisecondsTimeout));
示例#2
0
 AlgorithmType.Lottery => new LotteryPicker(TimeSpan.FromMilliseconds(Quantum)),
示例#3
0
 AlgorithmType.Guaranteed => new GuaranteedPicker(TimeSpan.FromMilliseconds(Quantum)),
示例#4
0
 AlgorithmType.Rr => new RoundRobinPicker(TimeSpan.FromMilliseconds(Quantum)),
示例#5
0
 => TryWaitAsync(TimeSpan.FromMilliseconds(timeout));
示例#6
0
 new TimeSpan(Hours, Minutes, Seconds).Add(TimeSpan.FromMilliseconds(Milliseconds)) == new TimeSpan(other.Hours, other.Minutes, other.Seconds).Add(TimeSpan.FromMilliseconds(other.Milliseconds)));