Scroll to navigation

FUTURE_CONTEXT_GET_OUTPUT(3) MINIASYNC Programmer's Manual FUTURE_CONTEXT_GET_OUTPUT(3)

NAME

future_context_get_output() - get future output from future context

SYNOPSIS

#include <libminiasync.h>
struct future_context;
void *future_context_get_output(struct future_context *context);
    

For general description of future API, see miniasync_future(7).

DESCRIPTION

The future_context_get_output() function reads the output from future context context. Output type corresponds to the _output_type parameter that is provided to the **FUTURE(_name, _data_type, _output_type)** macro during future creation.

For more information about the usage of future_context_get_output() function, see basic example in example directory in miniasync repository <https://github.com/pmem/miniasync>.

RETURN VALUE

The future_context_get_output() function returns pointer to the future output.

SEE ALSO

miniasync(7), miniasync_future(7) and <https://pmem.io>

2022-06-04 MINIASYNC - miniasync version 0.1.0