Use core.time.Duration.
This commit is contained in:
parent
a74a347645
commit
42a5ae0d3c
|
@ -1,3 +1,4 @@
|
||||||
|
import core.time;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
import ddbus;
|
import ddbus;
|
||||||
|
|
||||||
|
@ -9,7 +10,7 @@ void testCall(Connection conn) {
|
||||||
}
|
}
|
||||||
Message msg2 = Message("ca.thume.transience","/ca/thume/transience/screensurface",
|
Message msg2 = Message("ca.thume.transience","/ca/thume/transience/screensurface",
|
||||||
"ca.thume.transience.screensurface","testPing");
|
"ca.thume.transience.screensurface","testPing");
|
||||||
Message res = conn.sendWithReplyBlocking(msg2,3000);
|
Message res = conn.sendWithReplyBlocking(msg2, 3.seconds);
|
||||||
int result = res.read!int();
|
int result = res.read!int();
|
||||||
writeln(result);
|
writeln(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue