Scroll to navigation

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

NAME

future_context_get_data() - get future data from future context

SYNOPSIS

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

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

DESCRIPTION

The future_context_get_data() function reads the data from future context context. Data type corresponds to the _data_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_data() function, see basic example in example directory in miniasync repository <https://github.com/pmem/miniasync>.

RETURN VALUE

The future_context_get_data() function returns pointer to the future data.

SEE ALSO

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

2022-09-04 MINIASYNC - miniasync version 0.2.1