This will be the last post on rebuilding the MailboxProcessor using TDF,
here’s a quick discussion of the missing pieces…
First, lets start with the simple ones, these don’t really require much discussion.
DefaultTimeout
let mutable defaultTimeout = Timeout.Infinite
member x.DefaultTimeout
with get() = defaultTimeout
and set(value) = defaultTimeout <- value
This simply provides a mutable property using Timeout.Infinite as a default setting.
CurrentQueueLength
member x.CurrentQueueLength() = incomingMessages.Count
Another simple one, this methods uses into the underlying BufferBlock to extract its current queue length using its Count property.