Function callback.done()

In JavaScript:
callback.done(
result
)

Description

Mark the callback as completed, and return a result.

The result you give will be added as an argument to the callback function.

Note that call() is a deprecated alias for done().

Return Value

Returns the callback object again, so you can use this for method chaining.