Skip to main content

Module handle

Module handle 

Source
Expand description

The uniform handle to a spawned world. The handle every spawn hands back.

A spawned world โ€” a sub-world on the host thread, a threaded world on its own โ€” is reached the same way: a bounded command channel that never blocks. crate::handle::WorldHandle is that uniform handle. The spawn functions return it instead of a bare entity, so a caller queues work without a second lookup for the proxy component on the host.

Re-exportsยง

use unlit_ecs::Entity; ๐Ÿ”’
use crate::channel::SnapshotReader; ๐Ÿ”’
use crate::job::JobSender; ๐Ÿ”’
use crate::thread::ThreadStatus; ๐Ÿ”’
use crate::thread::WorldState; ๐Ÿ”’

Structsยง

WorldHandle
A cloneable handle to a spawned world.