We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f41f29 commit c1327d3Copy full SHA for c1327d3
tests/misc/eventLoop/Main.hx
@@ -42,9 +42,9 @@ class Main {
42
#end
43
44
haxe.EventLoop.addTask(function() {
45
- var event : haxe.MainLoop.MainEvent = null;
+ var event = haxe.EventLoop.main.addAsync();
46
var count = 0;
47
- event = haxe.MainLoop.add(function() {
+ event.start(function() {
48
trace(String.fromCharCode("A".code + count++));
49
if( count == 5 ) event.stop();
50
});
0 commit comments