Data.DBXCommon.TDBXScheduler.AddEvent
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.DBXCommon.pas Data.DBXCommon.hpp
| |
Unit: Data.DBXCommon | |
Parent: TDBXScheduler |
Delphi
procedure AddEvent(Id: NativeInt; Proc: TDBXScheduleEvent; Delta: Integer);
C++
void __fastcall AddEvent(System::NativeInt Id, _di_TDBXScheduleEvent Proc, int Delta);
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.