An open API service indexing awesome lists of open source software.

https://github.com/kthompson/actress

Actress is a C# port of the F# MailboxProcessor
https://github.com/kthompson/actress

actor-model c-sharp dotnet

Last synced: about 2 months ago
JSON representation

Actress is a C# port of the F# MailboxProcessor

Awesome Lists containing this project

README

          

# Actress

[![Nuget](https://img.shields.io/nuget/v/Actress.svg)](https://www.nuget.org/packages/Actress/) [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/kthompson/Actress?svg=true)](https://ci.appveyor.com/api/projects/status/github/kthompson/Actress?svg=true)

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

nuget install Actress # Install C# Actor system

# Example

```csharp

var printerAgent = MailboxProcessor.Start(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");
}
```