Skip to content

Add no macro async blinky code example#80

Open
katusk wants to merge 1 commit intomdeloof:mainfrom
katusk:no-macro-async-blinky
Open

Add no macro async blinky code example#80
katusk wants to merge 1 commit intomdeloof:mainfrom
katusk:no-macro-async-blinky

Conversation

@katusk
Copy link
Copy Markdown

@katusk katusk commented Feb 17, 2026

I was curious how to make statig work without the macros for async code. Since such an example was missing, I simply created one based on the already existing "async blinky using macros" and (non-async) "blinky using no macros" examples. Hope I nailed the intended usage.

I have one question, lines like context: &mut <Blinky as IntoStateMachine>::Context<'_>, -- the as IntoStateMachine part to be more specific -- bug me a bit, do you think there is a way to make this example somehow compile without the as part or with a different approach? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant