Kernel Reference

Warning

You as the developer should not have to use any kernel methods aside from start, submit, and shutdown.

MicroKernel


class py_actors.micro_kernel.MicroKernel

A basic kernel to run actors in

static monitor(kernel)

Process message queues for actors in the kernel

post(name, message)

Send a message to an actor

shutdown(immediate=True)

Shut the kernel down. When immediate is set to True, all active actors will be terminated, and unprocessed messages will be dropped. If immediate is set to False, actors will finish processing all messages in their queue at the time shutdown was called

start()

Start the kernel

submit(name, actor_instance)

Put an actor instance into the kernel