Interface AsyncExecutor
- All Superinterfaces:
Executor
Virtual threads for a mod's blocking work, such as HTTP calls or file I/O: one thread per
task, named
zf-async-<id>-<n>. ZomboidForge shuts it down when the server stops; tasks
submitted after that are rejected with a RejectedExecutionException.-
Method Summary
Modifier and TypeMethodDescriptionvoidRunstaskon a new virtual thread.<T> CompletableFuture<T> Runstaskon a new virtual thread; the future completes with its result or exception.
-
Method Details
-
execute
-
submit
Runstaskon a new virtual thread; the future completes with its result or exception.
-