Skip to content

Commit c1327d3

Browse files
committed
fixed test using EventLoop.addAsync
1 parent 0f41f29 commit c1327d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/misc/eventLoop/Main.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class Main {
4242
#end
4343

4444
haxe.EventLoop.addTask(function() {
45-
var event : haxe.MainLoop.MainEvent = null;
45+
var event = haxe.EventLoop.main.addAsync();
4646
var count = 0;
47-
event = haxe.MainLoop.add(function() {
47+
event.start(function() {
4848
trace(String.fromCharCode("A".code + count++));
4949
if( count == 5 ) event.stop();
5050
});

0 commit comments

Comments
 (0)