MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_async

Function test_async

tests/basic/test-assert.cpp:121–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void test_async()
122{
123 try
124 {
125 async::spawn( [] {
126 throw std::runtime_error( "Some async error" );
127 return 42;
128 } )
129 .then( []( int t ) {
130 DEBUG( t );
131 } )
132 .get();
133 exit( 1 );
134 }
135 catch( ... )
136 {
137 geode::geode_lippincott();
138 }
139}
140
141void test_exception()
142{

Callers 1

testFunction · 0.85

Calls 2

geode_lippincottFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected