LONGBOW_TEST_CASE(Specialization, parcFutureTask_Run) { PARCFutureTask *task = parcFutureTask_Create(_function, _function); parcFutureTask_Run(task); PARCFutureTaskResult actual = parcFutureTask_Get(task, PARCTimeout_Immediate); assertTrue(parcFutureTask_IsDone(task), "Expected parcFutureTask_IsDone to be true."); assertTrue(parcExecution_Is(actual.execution, PARCExecution_OK), "Expected OK, actual %s", parcExecution_GetMessage(actual.execution)); assertTrue(actual.value == _function, "Expected actual to point to _function"); parcFutureTask_Release(&task); }
void * parcScheduledTask_Run(const PARCScheduledTask *task) { return parcFutureTask_Run(task->task); }