Commit 6564b048 authored by Spencer Du's avatar Spencer Du

actor created for filter wheel

parent 531896e7
import random
import asyncio
from actorio import Actor, Message, DataMessage, ask, EndMainLoop, Reference
class FW(Actor):
# Here we override the handle_message method to send a `DataMessage` with the data "Hello World!".
async def handle_message(self, message: Message):
await message.sender.tell(DataMessage(data="Hello World Im a FW!", sender=self))
async def main():
# Let's create an instance of a Greeter actor and start it.
async with FW() as fw:
# Then we'll just send it an empty message and wait for a response
reply : DataMessage = await ask(fw, Message())
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment