LocalKernelProcessContext Class
A local kernel process context.
Note: This class is marked as 'experimental' and may change in the future.
Initializes the local kernel process context.
Constructor
LocalKernelProcessContext()
Methods
| dispose |
Disposes of the resources used by the process. |
| get_state |
Gets the current state of the process. |
| send_event |
Sends an event to the process. |
| start_with_event |
Starts the local process with an initial event. |
| stop |
Stops the local process. |
dispose
Disposes of the resources used by the process.
async dispose() -> None
get_state
Gets the current state of the process.
async get_state() -> KernelProcess
send_event
Sends an event to the process.
async send_event(process_event: KernelProcessEvent) -> None
Parameters
| Name | Description |
|---|---|
|
process_event
Required
|
|
start_with_event
Starts the local process with an initial event.
async start_with_event(initial_event: KernelProcessEvent) -> None
Parameters
| Name | Description |
|---|---|
|
initial_event
Required
|
|
stop
Stops the local process.
async stop() -> None
Attributes
is_experimental
is_experimental = True
local_process
local_process: LocalProcess
stage_status
stage_status = 'experimental'