Skip to main content

ec_cache_resolver_run_on_completion

Last updated March 2020

Name

ec_cache_resolver_run_on_completion — Schedule a function to run when the resolver completes

Synopsis

#include "ec_cache.h"

| void **ec_cache_resolver_run_on_completion** ( | resolver, |   | |   | func, |   | |   | closure); |   |

ec_cache_resolver * <var class="pdparam">resolver</var>; ec_cache_resolver_completion_func <var class="pdparam">func</var>; void * <var class="pdparam">closure</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Schedule a function to run when the resolver completes.

The completion function will be invoked with the cache, key, keylen, resolved element and optional closure pointer.

The resolved element may be NULL if the lookup could not be satisfied.

If the resolved element is not NULL, then the completion func must ec_cache_delref() it when it is done using it.

Was this page helpful?