Skip to content

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

GLN_API gln_continuation_t* GLN_CALL gln_take_backend_result_continuation(gln_backend_result_t* in_result);
  • Family: Backend result accessors
  • Return type: gln_continuation_t*

Purpose

Transfers the continuation handle out of an action-required backend result envelope.

After a successful take, the envelope no longer owns that continuation.

Return

Returns the caller-owned continuation handle taken from in_result; returns NULL when no continuation is available.

TypeNullabilityOwnership
gln_continuation_t*nullabletransferred_out

Parameters

NameDirectionTypeNullabilityOwnership
in_resultinputgln_backend_result_t*nullableborrowed

Notes

Passing NULL for in_result is allowed and returns NULL.

Pass the returned continuation to gln_resume_continuation, or save it with gln_save_continuation for later resume.

The returned continuation is caller-owned and must be released with gln_destroy_continuation. Destroying the original backend result envelope no longer destroys a continuation that has been taken.

See Also