async.h icon indicating copy to clipboard operation
async.h copied to clipboard

Stackless Async Subroutines for C

Results 9 async.h issues
Sort by recently updated
recently updated
newest added

This fixes the issue where a compiler puts multiple case statements on the same line and then has a conflict between the two. For example, for whatever reason, somebody wanted...

I like how you have the `await` macro built, but it wasn't usable from a synchronous function like `main`, so I made this alternative. I know it isn't super necessary,...

This pull request does rely on #10 and #11 so until then it will remain a Draft: I created another sample program that I believe will be helpful for those...

A tidy way to wrap an async function with the state initialization and close off the switch with the ASYNC_DONE

The timer functionality is really useful and I'm using it in other sample programs myself. For effective code reuse, I refactored it out. Also, I added the `async_sleep` function.

This request utilizes the suggested macro design by @naasking in #7 I've demo'd its usage in the `example-small.c`

limits.h is included on line 65, but no definitions from limits.h are used.

When i use the optional core async structure, In file included from sketch.ino:4: /sketch/async.h:80:8: error: using typedef-name 'async' after 'struct' struct async { async_state; }; apparently is because typedef enum...

I added a field to the async struct for storing a pointer to a custom struct containing the local variables for an async function. I did this so that async...