//clika-runtime/io.clika.runtime/Stream
Stream
[common]
class Stream : Placement
An execution stream: an ordered queue of device work. Work placed on a stream you create is pipelined, so the host keeps queueing while the device runs, and two such streams overlap independent work. The per-device defaultStream runs each operation on the calling thread instead: the explicit opt-in to synchronous execution.
AutoCloseable: close releases this handle (the stream itself outlives its handles).
Types
| Name | Summary |
|---|---|
| Companion | [common] object Companion |
Properties
| Name | Summary |
|---|---|
| device | [common] val device: Device The device this stream runs on. |
| isDefault | [common] val isDefault: Boolean True if this is the device's default stream. |
| isIdle | [common] val isIdle: Boolean True if the stream currently has no work in flight (a hint, not a barrier). |
Functions
| Name | Summary |
|---|---|
| close | [common] open fun close() |
| synchronize | [common] fun synchronize() Block until all work submitted on this stream has completed. |