This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.actors.Actor | |
import scala.actors.Actor._ | |
import scala.util.Random | |
import scala.collection.{immutable, mutable} | |
val rand = new Random() | |
case class Customer(id: Int) { | |
var shorn:Boolean = false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Pipelets | |
open System | |
open System.Reflection | |
open System.Collections.Concurrent | |
open FSharp.Control | |
type pipelet<'a,'b>(processor, router: seq<IPipeletInput<'b>> * 'b -> seq<IPipeletInput<'b>>, capacity, ?overflow, ?blockingTime) = | |
let buffer = BlockingQueueAgent<_> capacity | |
let routes = ref List.empty<IPipeletInput<'b>> | |
let queuedOrRunning = ref false |
NewerOlder