diff --git a/tests/issue-66-yield-eventloop-exit.d b/tests/issue-66-yield-eventloop-exit.d new file mode 100644 index 0000000..dd7ae64 --- /dev/null +++ b/tests/issue-66-yield-eventloop-exit.d @@ -0,0 +1,19 @@ +/+ 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); +}