receiveOnlyTimeout

  1. T receiveOnlyTimeout(Duration d)
  2. Tuple!(T) receiveOnlyTimeout(Duration d)
    @safe
    Tuple!(T)
    receiveOnlyTimeout
    (
    T...
    )
    (
    Duration d = 1.seconds
    )
    if (
    T.length > 1 &&
    allSatisfy!(isType, T)
    )

Throws

MessageTimeout, if no message is received before Duration WrongMessage, if incorrect message was received