diff options
| author | lishu <[email protected]> | 2019-08-12 14:06:30 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-08-12 14:06:30 +0800 |
| commit | 7c16243238ac90bdfdb8c2e57897ac0d45e940eb (patch) | |
| tree | 71fb750d6045a6ed8cc549c22cd10885cf376d52 /src/inc/tfe_future.h | |
| parent | aa8c58e98beef3f68fb0fc2647db2b5efae997c4 (diff) | |
更新tango_cache
Diffstat (limited to 'src/inc/tfe_future.h')
| -rw-r--r-- | src/inc/tfe_future.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inc/tfe_future.h b/src/inc/tfe_future.h index c428f08..fc2311d 100644 --- a/src/inc/tfe_future.h +++ b/src/inc/tfe_future.h @@ -21,6 +21,8 @@ struct promise * future_to_promise(struct future * f); void future_destroy(struct future * f); void promise_failed(struct promise * p, enum e_future_error error, const char * what); void promise_success(struct promise * p, void * result); +void promise_finish(struct promise * p); +void promise_allow_many_successes(struct promise *p); void promise_set_ctx(struct promise * p, void * ctx, promise_ctx_destroy_cb * cb); void * promise_get_ctx(struct promise * p); void * promise_dettach_ctx(struct promise * p); |
