TimeoutOperationRegisterTimeout Method
Registers a timeout callback to be executed at specified intervals.
Namespace: SnapDB.ThreadingAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void RegisterTimeout(
TimeSpan interval,
Action callback
)
Public Sub RegisterTimeout (
interval As TimeSpan,
callback As Action
)
public:
void RegisterTimeout(
TimeSpan interval,
Action^ callback
)
function RegisterTimeout(interval, callback);
Parameters
- interval TimeSpan
- The time interval between callback executions.
- callback Action
- The callback action to be executed.
| Exception | Thrown if a duplicate registration is attempted. |