Skip to content

0x0c/thunderclap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

thunderclap

Fuck'n simple notification system.

Usage

// get shared instance
auto t = thunderclap::thunderclap<std::string>::shared_instance();

// add observer
auto idx = t->watch("notification", [](std::string x) {
	std::cout << "notification received!! : " << x << std::endl;
});

// then post notification
t->clap("notification", "param");

// remove observer
t->dispose("notification", idx);

See more at main.cpp.

Releases

No releases published

Packages

No packages published