Skip to content

Instantly share code, notes, and snippets.

@JohnNilsson
JohnNilsson / Actor.cs
Created May 6, 2012 22:17 — forked from viktorklang/Actor.java
Minimalist C# Actors
// Inspired by https://gist.github.com/2557678
// and http://dspace.mit.edu/bitstream/handle/1721.1/6935/AITR-633.pdf
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks.Dataflow;
using Message = System.Object;
namespace Actors
{
public interface Behavior { Behavior OnArrival(Message message); }