vibe-core/tests/issue-66-yield-eventloop-exit.d

20 lines
242 B
D
Raw Normal View History

2018-03-06 22:39:57 +00:00
/+ dub.sdl:
name "tests"
dependency "vibe-core" path=".."
+/
module tests;
import vibe.core.core;
void main()
{
bool visited = false;
runTask({
yield();
visited = true;
exitEventLoop();
});
runApplication();
assert(visited);
}