W3cubDocs

/Dojo

dojo/promise/tracer

Summary

Trace promise fulfillment.

Trace promise fulfillment. Calling .trace() or .traceError() on a promise enables tracing. Will emit resolved, rejected or progress events.

See the dojo/promise/tracer reference documentation for more information.

Methods

on(type,listener)

Defined by dojo/promise/tracer

Subscribe to traces.

See dojo/Evented#on().

Parameter Type Description
type String

resolved, rejected, or progress

listener Function

The listener is passed the traced value and any arguments that were used with the .trace() call.

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/promise/tracer.html