pub fn preempt(task: &Arc<Task>)
Expand description
Preempts the task
.
TODO: This interface of this method is error prone. The method takes an argument for the current task to optimize its efficiency, but the argument provided by the caller may not be the current task, really. Thus, this method should be removed or reworked in the future.