Actress is a C# port of the F# MailboxProcessor
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 10 commits behind kthompson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Actress.Tests
Actress
.gitignore
Actress.sln
LICENSE
README.md
build.bat

README.md

Actress

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");
}