Interface IDelayStrategy<T>
Allows to manage delay and can be stateful to compute delay for any sequence of elements, all elements go through NextDelay(T) updating state and returning delay for each element
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public interface IDelayStrategy<T>
Type Parameters
Name | Description |
---|---|
T | type of element |
Methods
| Improve this Doc View SourceNextDelay(T)
Returns delay for ongoing element
,
TimeSpan.Zero
means passing without delay
Declaration
TimeSpan NextDelay(T element)
Parameters
Type | Name | Description |
---|---|---|
T | element | element |
Returns
Type | Description |
---|---|
TimeSpan |