Contract vs Non-Contract
Contract-based threads end automatically when a terminal step is reached. Non-contract threads require manual ending viacomplete() or cancel().
Basic Usage
Properties
- JavaScript
- Go
- Python
Notifications
When a thread ends, Threadify emits events:thread.completed- Triggered whencomplete()is called or a terminal step is reachedthread.cancelled- Triggered whencancel()is called
Next Steps
Working with Contracts
Learn how contracts enforce terminal steps
Notifications
Subscribe to thread completion events