Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API gln_status_t GLN_CALL gln_save_continuation(
    gln_continuation_store_t* in_store,
    const char*               in_id,
    gln_continuation_t*       in_continuation,
    gln_error_t*              out_error);
  • Family: Continuation functions
  • Return type: gln_status_t

Purpose

Stores a continuation under caller-supplied in_id in a continuation store.

in_store, in_id, and in_continuation are borrowed for the duration of the call.

Return

Returns GLN_OK on success and a non-OK gln_status_t value on failure.

TypeNullabilityOwnership
gln_status_tvaluevalue

Parameters

NameDirectionTypeNullabilityOwnership
in_storeinputgln_continuation_store_t*nonnullborrowed
in_idinputconst char*nonnullborrowed
in_continuationinputgln_continuation_t*nonnullborrowed
out_erroroutputgln_error_t*nullablecaller_allocated_output

Notes

The call copies the continuation artifact into the store; it does not transfer or destroy in_continuation.

On failure, out_error is populated when provided. Release that populated direct error slot with gln_release_error before reusing it for another call.

See Continuations and Stores for the persistence flow and store lifetime rules.

See Also