Shorter test case (Issue 1583)
/+ dub.json:
{
"name": "test",
"dependencies": {
"vibe-d:core": "0.7.29"
}
}
+/
import std.stdio;
import std.socket;
import std.datetime;
import vibe.core.core;
void main() {
runTask({
writeln("start task");
auto pair = socketPair();
auto evt = createFileDescriptorEvent(pair[1].handle, FileDescriptorEvent.Trigger.any);
//destroy(evt);
writeFile("dummy.txt", cast(immutable ubyte[]) "1234567890");
writeln("end task");
exitEventLoop();
});
runEventLoop();
}