Data.DBXCommon.TDBXScheduler.AddEvent
Delphi
procedure AddEvent(Id: NativeInt; Proc: TDBXScheduleEvent; Delta: Integer);
C++
void __fastcall AddEvent(NativeInt Id, _di_TDBXScheduleEvent Proc, int Delta);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DBXCommon.pas Data.DBXCommon.hpp |
Data.DBXCommon | TDBXScheduler |
Description
AddEvent registers a user event.
AddEvent registers a TDBXScheduleEvent that is executed after a period of time, specified by Delta
.
Id
is a user event ID that can be used for cancellation.
Proc
is the user event.
Delta
is the time (in milliseconds) when the user event is expected.
Note: This method is thread-safe.