mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
📝 Document Task.cancel
This commit is contained in:
parent
85e65ffd1c
commit
0842106203
@ -155,6 +155,9 @@ class Task
|
||||
|
||||
true
|
||||
|
||||
# Public: Cancel the running task and emit an event if it was canceled.
|
||||
#
|
||||
# Returns a {Boolean} indicating whether the task was terminated.
|
||||
cancel: ->
|
||||
didForcefullyTerminate = @terminate()
|
||||
if didForcefullyTerminate
|
||||
|
Loading…
Reference in New Issue
Block a user