You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andrea Fontana edited this page May 28, 2023
·
1 revision
@onWorkerStart and onWorkerStop
/+ When a worker is created, this function is called. Useful to init database connection & everything else.+/
@onWorkerStart
voidstart()
{
// Connect to db...
}
@onWorkerStop
voidstop()
{
// Close connection
}