eate ASYNC_WAIT_CTX\n&quot;);
        abort();
    }

    for (;;) {
        switch (ASYNC_start_job(&amp;job, ctx, &amp;ret, jobfunc, msg, sizeof(msg))) {
        case ASYNC_ERR:
        case ASYNC_NO_JOBS:
            printf(&quot;An error occurred\n&quot;);
            goto end;
        case ASYNC_PAUSE:
            printf(&quot;Job was paused\n&quot;);
            break;
        case ASYNC_FINISH:
            printf(&quot;Job finished with return value %d\n&quot;, ret);
            goto end;
        }

