Alias sleep(int) for Thread.sleep(dur!("seconds")( int ));

Marcone marcone at email.com
Tue Nov 12 21:24:54 UTC 2019


I am using this function to sleep, but I want a simple Alias. How 
can I alias this?

// Function sleep(int)
void sleep(int seconds){
	Thread.sleep(dur!("seconds")( seconds ));
}

sleep(1); // Using function.


More information about the Digitalmars-d-learn mailing list