Remove promise ptr printf
Does not make sense since we are not printing the ptr from the callbacks now.
This commit is contained in:
parent
e9e0834b26
commit
e4d0ba744e
|
@ -43,7 +43,7 @@ _value_print(void *data EINA_UNUSED, const Eina_Value value)
|
||||||
static void
|
static void
|
||||||
_promise_cancel(void *data EINA_UNUSED, const Eina_Promise *dead EINA_UNUSED)
|
_promise_cancel(void *data EINA_UNUSED, const Eina_Promise *dead EINA_UNUSED)
|
||||||
{
|
{
|
||||||
printf(" Promise cancellation callback: Promise %p cancelled\n", dead);
|
printf(" Promise cancellation callback: Promise cancelled\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -90,7 +90,7 @@ _test1_simple_future(Efl_Loop *loop)
|
||||||
// Create a promise
|
// Create a promise
|
||||||
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
||||||
_promise_cancel, NULL);
|
_promise_cancel, NULL);
|
||||||
printf("Test 1: Waiting for promise %p to be resolved...\n", promise);
|
printf("Test 1: Waiting for promise to be resolved...\n");
|
||||||
|
|
||||||
// This future will call _value_print() when the promise is resolved and
|
// This future will call _value_print() when the promise is resolved and
|
||||||
// execute the next test when the future is destroyed (for whatever reason)
|
// execute the next test when the future is destroyed (for whatever reason)
|
||||||
|
@ -139,7 +139,7 @@ _test2_failed_future(Efl_Loop *loop)
|
||||||
// Create a promise
|
// Create a promise
|
||||||
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
||||||
_promise_cancel, NULL);
|
_promise_cancel, NULL);
|
||||||
printf("Test 2: Waiting for promise %p to be rejected...\n", promise);
|
printf("Test 2: Waiting for promise to be rejected...\n");
|
||||||
|
|
||||||
// This future will call _value_print() when the promise is resolved.
|
// This future will call _value_print() when the promise is resolved.
|
||||||
// If there is an error, _error_print() is called instead.
|
// If there is an error, _error_print() is called instead.
|
||||||
|
@ -181,7 +181,7 @@ _test3_cancelled_future(Efl_Loop *loop)
|
||||||
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
||||||
_promise_cancel, NULL);
|
_promise_cancel, NULL);
|
||||||
future = eina_future_new(promise);
|
future = eina_future_new(promise);
|
||||||
printf("Test 3: Waiting for promise %p to be cancelled...\n", promise);
|
printf("Test 3: Waiting for promise to be cancelled...\n");
|
||||||
|
|
||||||
// This future will call _value_print() when the promise is resolved.
|
// This future will call _value_print() when the promise is resolved.
|
||||||
// If there is an error, _error_print() is called instead.
|
// If there is an error, _error_print() is called instead.
|
||||||
|
@ -257,7 +257,7 @@ _test4_chained_future(Efl_Loop *loop)
|
||||||
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
promise = eina_promise_new(efl_loop_future_scheduler_get(loop),
|
||||||
_promise_cancel, NULL);
|
_promise_cancel, NULL);
|
||||||
|
|
||||||
printf("Test 4: Waiting for promise %p to be resolved...\n", promise);
|
printf("Test 4: Waiting for promise to be resolved...\n");
|
||||||
// All these methods, eina_future_cb_console() and _chain_multiply_cb(), will
|
// All these methods, eina_future_cb_console() and _chain_multiply_cb(), will
|
||||||
// be called one after the other when the promise is resolved.
|
// be called one after the other when the promise is resolved.
|
||||||
// Note how the last one is _exit_cb().
|
// Note how the last one is _exit_cb().
|
||||||
|
|
Loading…
Reference in New Issue