Schedules an entity for removal when the current initializer, callback, or action completes.
Signature
The entity must exist. Removal is deferred until the enclosing initializer, callback, or action completes so checked work sees a consistent world.
Parameters
entity: Entity- An existing entity identity.
Returns
UnitUnit; removal is deferred to preserve transactional execution.
Examples
Schedule removal
The current value remains printable while removal is pending.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
entity(1)
Rust definition
Rust interpreter builtin dispatch; Type is func(Entity) -> Unit.
View Rust documentation →Support: runtime