From eb4a210a1857ecae490b380a0f9c25c38211d1ca Mon Sep 17 00:00:00 2001 From: player-03 Date: Sat, 4 Feb 2023 17:23:13 -0500 Subject: [PATCH] Remove references to "virtual" threads. Java has essentially redefined this term, so let's avoid using it. --- src/lime/app/Future.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/app/Future.hx b/src/lime/app/Future.hx index f784c25ec..39c49d402 100644 --- a/src/lime/app/Future.hx +++ b/src/lime/app/Future.hx @@ -307,7 +307,7 @@ import lime.utils.Log; @param work A function that computes a value of type `T`. @param state An argument to pass to `work()`. As this may be used on another thread, the main thread must not access or modify `state` until the `Future` finishes. - @param mode Whether to use real threads as opposed to virtual threads. Virtual threads rely + @param mode Whether to use real threads as opposed to green threads. Green threads rely on cooperative multitasking, meaning `work()` must return periodically to allow other code enough time to run. In these cases, `work()` should return null to signal that it isn't finished. @return A new `Future` instance.