Promise

#include <jnc_Promise.h>

// structs

struct jnc_Promise;

// global functions

jnc_Promise*
jnc_createPromise(jnc_Runtime* runtime);

void
jnc_Promise_complete(
    jnc_Promise* promise,
    jnc_Variant result,
    jnc_DataPtr errorPtr
);