DirectThreadBridge
final class DirectThreadBridge
Implements: IThreadBridge
Package: dev.joid.lib.bridge.thread · Module: core · Source: DirectThreadBridge.java
The thread bridge that JOID holds before any backend, for which every thread is the render thread.
Description
Section titled “Description”It runs every task at once, on the calling thread.
A backend whose createThreadBridge() returns null keeps it.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| DirectThreadBridge() | Creates the thread bridge. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | isRenderThread() | Returns true on every thread. |
void | execute(Runnable runnable) | Runs the task at once, on the calling thread. |
Creation details
Section titled “Creation details”DirectThreadBridge
Section titled “DirectThreadBridge”DirectThreadBridge()
Creates the thread bridge.
Method details
Section titled “Method details”isRenderThread
Section titled “isRenderThread”boolean isRenderThread()
Returns true on every thread.
execute
Section titled “execute”void execute(Runnable runnable)
Runs the task at once, on the calling thread.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
