Browse Source

Use consistent arg name for Thread.create (#10559)

* Use consistent arg name for Thread.create

so that the doc will not create two entries

* Update Thread.hx
Kevin Leung 3 years ago
parent
commit
87b7f0cbde
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/python/_std/sys/thread/Thread.hx

+ 2 - 2
std/python/_std/sys/thread/Thread.hx

@@ -36,8 +36,8 @@ abstract Thread(ThreadImpl) from ThreadImpl {
 		return HxThread.current();
 	}
 
-	public static inline function create(callb:Void->Void):Thread {
-		return HxThread.create(callb, false);
+	public static inline function create(job:Void->Void):Thread {
+		return HxThread.create(job, false);
 	}
 
 	public static inline function runWithEventLoop(job:()->Void):Void {