瀏覽代碼

fixed test using EventLoop.addAsync

ncannasse 1 月之前
父節點
當前提交
c1327d3c16
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/misc/eventLoop/Main.hx

+ 2 - 2
tests/misc/eventLoop/Main.hx

@@ -42,9 +42,9 @@ class Main {
 		#end
 
 		haxe.EventLoop.addTask(function() {
-			var event : haxe.MainLoop.MainEvent = null;
+			var event = haxe.EventLoop.main.addAsync();
 			var count = 0;
-			event = haxe.MainLoop.add(function() {
+			event.start(function() {
 				trace(String.fromCharCode("A".code + count++));
 				if( count == 5 ) event.stop();
 			});