Skip to content

saucer/loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Iterative Loop module for saucer


📦 Installation

  • Using CPM

    CPMFindPackage(
      NAME           saucer-loop
      VERSION        1.0.0
      GIT_REPOSITORY "https://github.com/saucer/loop"
    )
  • Using FetchContent

    include(FetchContent)
    
    FetchContent_Declare(saucer-loop GIT_REPOSITORY "https://github.com/saucer/loop" GIT_TAG v1.0.0)
    FetchContent_MakeAvailable(saucer-loop)

Finally, link against target:

target_link_libraries(<target> saucer::loop)

📃 Usage

Warning

This module may replace the default application loop. Therefore, it is recommended to not use or call application::finish()!

auto  app    = /*...*/;
auto& loop   = app->add_module<saucer::modules::loop>();
auto webview = /*...*/;

while (/*cond*/)
{
    loop->iteration();
}

// or simply...

loop->run();

About

🛸 A module that implements an iterative loop

Resources

License

Stars

Watchers

Forks

Packages

No packages published