Table of Contents

Interface ITimeManager

Namespace
Cognite.Simulator.Utils
Assembly
Cognite.Simulator.Utils.dll

A wrapper around the .NET Task.Delay method. This is useful for testing purposes, where the delay can be faked.

public interface ITimeManager

Methods

Delay(TimeSpan, CancellationToken)

Delays the current thread for a specified time.

Task Delay(TimeSpan delay, CancellationToken token)

Parameters

delay TimeSpan
token CancellationToken

Returns

Task