Skip to content

Instantly share code, notes, and snippets.

View edmondburnett's full-sized avatar

Edmond Burnett edmondburnett

  • Seattle, WA
View GitHub Profile
@NoelFB
NoelFB / routine.h
Last active November 7, 2022 07:19
Simple C++ Coroutine using a switch statement internally
#pragma once
namespace YourNamespace
{
struct Routine
{
// Current "waiting time" before we run the next block
float wait_for = 0;
// Used during `rt_for`, which repeats the given block for X time