sources/cpp/asyncawait/main.cpp
void producer(async_manual_reset_event_setter& signal)
{
	std::this_thread::sleep_for(2s);
	//value = some_long_running_computation();
	value = 42;

	// Publish the value by setting the event.
	signal.set();
}
// A single call to produce a value
A single call to produce a value
A single call to produce a value
void producer(async_manual_reset_event_setter& signal)
{
	std::this_thread::sleep_for(2s);
	value = 42;
	signal.set();
}
void producer ( async_manual_reset_event_setter & signal ) { std :: this_thread :: sleep_for ( 2 s ) ; value = 42 ; signal . set ( ) ; }
A single call to produce a value
A single call to produce a value
//value = some_long_running_computation(); // Publish the value by setting the event.