Listener -
task
: Listener
Represents a ballerina task listener, which can be used to schedule and execute tasks periodically.
Constructor
__init
(TimerConfiguration | AppointmentConfiguration configs)
- configs TimerConfiguration | AppointmentConfiguration
Methods
__detach
__gracefulStop
__immediateStop
pause
Pauses the task listener.
resume
Resumes a paused task listener.
LifeCycle Methods
Methods
Pauses the task listener.
-
Return Type
(ListenerError?) Returns
task:ListenerError
if an error is occurred while resuming, nil Otherwise.
Resumes a paused task listener.
-
Return Type
(ListenerError?) Returns
task:ListenerError
when an error occurred while pausing, nil Otherwise.
LifeCycle Methods
-
Return Type
(error?)