mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Merge pull request #14574 from atom/ld-document-task-cancel
📝 Document Task.cancel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user