WithClock
Configures the clock to use for time-related operations, primarily for unit testing.
def WithClock(
clock: clock.WithTicker
) - > Option
Configures the clock to use for time related operations. Mainly used for unit testing.
Parameters
| Name | Type | Description |
|---|---|---|
| clock | clock.WithTicker | The clock implementation to use for time-related operations, primarily for testing purposes. |
Returns
| Type | Description |
|---|---|
Option | An Option function that sets the clock on the Options struct. |