Merge branch 'nonsync_wait' of https://git.bitelex.co/marcelb/asynco into nonsync_wait
This commit is contained in:
		
						commit
						8b23bd6728
					
				@ -87,7 +87,7 @@ Make functions asynchronous
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
async_ ( []() {
 | 
					async_ ( []() {
 | 
				
			||||||
    sleep_for(2s);   // only for simulating long duration function
 | 
					    sleep_for(2s);   // only for simulating long duration function
 | 
				
			||||||
    cout << "asynco" << endl;
 | 
					    cout << "nonsync " << endl;
 | 
				
			||||||
    return 5;
 | 
					    return 5;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -126,7 +126,7 @@ async_ ( [&classes] () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
auto a = async_ ( []() {
 | 
					auto a = async_ ( []() {
 | 
				
			||||||
    sleep_for(2s);   // only for simulating long duration function
 | 
					    sleep_for(2s);   // only for simulating long duration function
 | 
				
			||||||
    cout << "asynco" << endl;
 | 
					    cout << "nonsync " << endl;
 | 
				
			||||||
    return 5;
 | 
					    return 5;
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user