mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Document and test the cancel() method on the object returned by atom.workspace.scan().
This commit is contained in:
@@ -803,7 +803,8 @@ class Workspace extends Model
|
||||
# * `onPathsSearched` (optional) {Function}
|
||||
# * `iterator` {Function} callback on each file found
|
||||
#
|
||||
# Returns a `Promise`.
|
||||
# Returns a *thenable* object with a `cancel()` method that will cancel all
|
||||
# of the underlying searches that were started as part of this scan.
|
||||
scan: (regex, options={}, iterator) ->
|
||||
if _.isFunction(options)
|
||||
iterator = options
|
||||
|
||||
Reference in New Issue
Block a user