Add a task to the executor. If the task is already queued then the old is removed. A custom `task.equals' method can modify the behavior.
the task to execute.
Removes task from the list. The task.equals method can customize which tasks are removed.
the task to remove
The TaskExecutor is a task execution list, tasks can be added and will be executed one after another. Implementation hint: Pushed task are queued and executed as micro tasks in the next event queue slot.
Example: _Use default export_