Merge pull request #14574 from atom/ld-document-task-cancel

📝 Document Task.cancel
This commit is contained in:
Lee Dohm
2017-05-23 08:25:52 -07:00
committed by GitHub

View File

@@ -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