Task

Noir.Classes.TaskClass: NoirClass

Represents a task.


Noir.Classes.TaskClass:Init(ID, taskType, duration, isRepeating, arguments, startedAt)

Initializes task class objects.

Parameters

  • ID: integer

  • taskType: NoirTaskType

  • duration: number

  • isRepeating: boolean

  • arguments: table<integer, any>

  • startedAt: number


Noir.Classes.TaskClass:SetRepeating(isRepeating)

Sets whether or not this task is repeating.

If repeating, the task will be triggered repeatedly as implied.

If not, the task will be triggered once, then removed from the TaskService.

Parameters

  • isRepeating: boolean


Noir.Classes.TaskClass:SetDuration(duration)

Sets the duration of this task.

Parameters

  • duration: number


Noir.Classes.TaskClass:SetArguments(arguments)

Sets the arguments that will be passed to this task upon finishing.

Parameters

  • arguments: table<integer, any>


Noir.Classes.TaskClass:Remove()

Remove this task from the task service.

Last updated