Class
Thread
class Thread
Module: System.Concurrency
Assembly: System.Runtime.dll
Source file: Workers.rvn
An explicit, isolated host thread with a retained completion task.
Remarks
Development after Preview 9. Accepts an uncaptured string-to-string callback. Construction selects the completion queue but does not start work. Guest objects do not cross thread boundaries.
Constructors
1 item
Thread(callback: (string) -> string, input: string)
No summary available.
Properties
2 items
IsStarted: bool
Gets whether native thread submission has succeeded.
Task: Task<string>
Gets the stable task containing the callback result after thread termination.
Methods
6 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Run(callback: (string) -> string, input: string) -> Task<string>
No summary available.
Start() -> ()
Starts this thread once.
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString