@@ -974,6 +974,8 @@ extension SignalProtocol {
974974 /// - note: failed and `interrupted` events are always scheduled
975975 /// immediately.
976976 ///
977+ /// - precondition: `interval` must be non-negative number.
978+ ///
977979 /// - parameters:
978980 /// - interval: Interval to delay `value` and `completed` events by.
979981 /// - scheduler: A scheduler to deliver delayed events on.
@@ -1003,6 +1005,8 @@ extension SignalProtocol {
10031005
10041006 /// Skip first `count` number of values then act as usual.
10051007 ///
1008+ /// - precondition: `count` must be non-negative number.
1009+ ///
10061010 /// - parameters:
10071011 /// - count: A number of values to skip.
10081012 ///
@@ -1739,6 +1743,8 @@ extension SignalProtocol {
17391743 /// a value is being throttled, and if there is a new value sent,
17401744 /// the new value will be passed anyway.
17411745 ///
1746+ /// - precondition: `interval` must be non-negative number.
1747+ ///
17421748 /// - parameters:
17431749 /// - interval: Number of seconds to wait between sent values.
17441750 /// - scheduler: A scheduler to deliver events on.
@@ -1913,6 +1919,8 @@ extension SignalProtocol {
19131919 /// that value will be discarded and the returned signal will
19141920 /// terminate immediately.
19151921 ///
1922+ /// - precondition: `interval` must be non-negative number.
1923+ ///
19161924 /// - parameters:
19171925 /// - interval: A number of seconds to wait before sending a value.
19181926 /// - scheduler: A scheduler to send values on.
@@ -2193,6 +2201,8 @@ extension SignalProtocol {
21932201 /// The signal must complete synchronously (or on a faster
21942202 /// scheduler) to avoid the timeout.
21952203 ///
2204+ /// - precondition: `interval` must be non-negative number.
2205+ ///
21962206 /// - parameters:
21972207 /// - error: Error to send with failed event if `self` is not completed
21982208 /// when `interval` passes.
0 commit comments