Skip to content

kthompson/Actress

Repository files navigation

Actress

Nuget AppVeyor

Actress is a C# port of the F# MailboxProcessor.

nuget install Actress   # Install C# Actor system

Example

    var printerAgent = MailboxProcessor.Start<string>(async mb =>
    {
        while (true)
        {
            var value = await mb.Receive();
            
            Trace.WriteLine("Message was: " + value);
        }
    });
  
    using (printerAgent)
    {
        printerAgent.Post("hello");
        printerAgent.Post("hello again");
        printerAgent.Post("hello a third time");
    }

About

Actress is a C# port of the F# MailboxProcessor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •