mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
Updated ComponentAccess (markdown)
parent
f563d0c4b5
commit
82bd53b80c
@ -55,7 +55,7 @@ Note that each primary component you access via `component.getPrimary` or `compo
|
|||||||
|
|
||||||
Direct Calls
|
Direct Calls
|
||||||
------------
|
------------
|
||||||
Using proxies is generally preferable to `component.invoke`, since proxies can perform "direct calls", if supported by the component; `component.invoke` doesn't. Direct calls are performed in the computer's worker thread, meaning they will return instantly. Normal calls are delegated to the main server thread, to avoid race conditions and other threading issues, which also means that normal calls will take up to one tick (i.e. 50 ms). Just to be clear: this only applies to component APIs.
|
Some component callbacks can performed as "direct calls". Direct calls are performed in the computer's worker thread, meaning they will return instantly. Normal calls are delegated to the main server thread, to avoid race conditions and other threading issues, which also means that normal calls will take up to one tick (i.e. 50 ms). Just to be clear: this only applies to component APIs.
|
||||||
|
|
||||||
Signals
|
Signals
|
||||||
-------
|
-------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user