Skip to content

Commit

Permalink
Added comment explaining how the callResult.deferred.returnNextElemen…
Browse files Browse the repository at this point in the history
…t callback should be implemented

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
  • Loading branch information
rjd15372 committed Dec 19, 2024
1 parent e21eb99 commit 4a2cb12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/valkeymodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,9 @@ typedef struct ValkeyModuleScriptingEngineCallResult {
/* Used by ARRAY, SET, MAP */
struct {
void *context;
/* This callback implementation should call
* `ValkeyModule_ReturnFunctionCallResult` with the next element of
* the array, set, or map. */
int (*returnNextElem)(void *context);
} deferred;
} val;
Expand Down

0 comments on commit 4a2cb12

Please sign in to comment.