| Điều hướng hàm | Mô tả |
|---|---|
getscriptfromthread | Returns the Script Instance associated with a Luau thread, or nil when no valid script reference is available. |
getthreadidentity | Returns the identity for the current Luau thread, or for the first argument when that argument is a thread. Returned identities are 1 through 12; other stored values return 0. |
isourthread | Returns whether the required Luau thread argument is currently present in Real’s Real caller context. The function requires argument 1 to be a thread with type checking, converts it with thread conversion, checks Real caller context.Has(..), and returns exactly one boolean. is_our_thread is an alias for the same function. |
setthreadidentity | Sets the identity for a Luau thread and returns no values. If argument 1 is a thread, argument 2 is required and must be a number; that thread is targeted. Otherwise argument 1 is required and must be a number, and the current thread is targeted. The number is read with integer conversion, clamped below 0 to 0 and above 12 to 12, then passed to Real. Real stores the identity and the matching IdentityToCapabilities result on the thread object, and also updates the TLS identity data structureure when one is available. Aliases call the same function. |
Threads
Threads
Bối cảnh chủ đề và danh tính.
Bối cảnh chủ đề và danh tính.