Thread.sleep( dur!("msecs")( 50 ) ); // sleep for 50 milliseconds

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 30 02:39:44 PST 2015


     	foreach(f; files))
     	{
     		if (canFind(to!string(f), " "))
     		{
     			writeln("whitespace found:");
     			writeln(f);
     			Thread.sleep( dur!("msecs")( 50 ) );  // sleep for 50 
milliseconds
     		}
     		else
     			continue;
     	}

Error: module app struct std.regex.Thread(DataIndex) is private
Error: no property 'sleep' for type 'void'

What's wrong? Why sleeping do not work?


More information about the Digitalmars-d-learn mailing list