ZEST / base.resolver / Namespace: Unloader

base-resolver/unloader~ Unloader

Methods

<static> register(callback)

This function is used to register a callback function to the unloader. We inject this function as a dependency when unloader is requested by a component.

Parameters:
Name Type Description
callback callback

the function to execute when resolver is unloaded.

Source:

<static> unload() → {external:q}

This function is called when the resolver is unloaded.

Source:
Returns:

a promise that resolves when all callbacks registeres are executed.

Type
external:q