mailboxprocessor Questions
2
Solved
I'm new to F# and trying to experiment with the MailboxProcessor to ensure that state changes are done in isolation.
In short, I am posting actions (immutable objects describing state chanage) to ...
Disarm asked 2/5, 2018 at 13:26
1
I wrote a simple (I thought...) rate limiter to keep an event driven system under our licensed API hit limits. For some reason it seizes up sometimes after 400-500 requests are sent through.
My be...
Graphophone asked 2/4, 2018 at 22:7
1
Solved
I tried to reduce this to the smallest possible repro, but it's still a bit long-ish, my apologies.
I have an F# project that references a C# project with code like the following.
public static c...
Coimbra asked 8/2, 2017 at 17:13
1
Solved
I am trying to test a MailboxProcessor in F#. I want to test that the function f I am giving is actually executed when posting a message.
The original code is using Xunit, but I made an fsx of it ...
Adios asked 15/1, 2017 at 15:46
1
Solved
If state is regarded as a bad idea for functions why is it regarded as okay have a state when you use a MailboxProcessor?
To expand, I was explaining functional programming to someone, how functi...
Syndic asked 9/4, 2014 at 13:18
1
Solved
I've got an agent which I set up to do some database work in the background. The implementation looks something like this:
let myAgent = MailboxProcessor<AgentData>.Start(fun inbox ->
le...
Keffiyeh asked 26/3, 2014 at 21:1
3
Solved
I am learning about F# agents (MailboxProcessor).
I am dealing with a rather unconventional problem.
I have one agent (dataSource) which is a source of streaming data. The data has to be process...
Fraze asked 29/1, 2014 at 9:42
1
Solved
Is it possible to make PostAndAsyncReply return immediately when its MailboxProcessor is disposed (or otherwise stopped)? Or is there some "pattern" / best practice on how to safely use PostAndRepl...
Mercurate asked 19/8, 2013 at 11:45
2
Solved
I've seen different snippets demonstrating a Put message that returns unit with F#'s MailboxProcessor. In some, only the Post method is used while others use PostAndAsyncReply, with the reply chann...
Monophagous asked 15/12, 2011 at 17:25
2
I'm hunting for some memory-leaks in a long runing service (using F#) right now.
The only "strange" thing I've seen so far is the following:
I use a MailboxProcessor in a subsystem with an algebr...
Dictatorial asked 20/2, 2012 at 6:2
2
Solved
I wonder, why MailboxProcessor's default strategy of handling exceptions is just silently ignore them. For example:
let counter =
MailboxProcessor.Start(fun inbox ->
let rec loop() =
async {...
Hilda asked 29/5, 2012 at 18:58
1
Solved
Looking at:
member this.PostAndReply : (AsyncReplyChannel<'Reply> -> 'Msg) * ?int -> 'Reply
I can't figure out why the signature looks so counter-intuitive to me. What we want to do ...
Gery asked 29/2, 2012 at 14:57
2
Solved
Have you tried to use a MailboxProcessor of T from C#? Could you post sample code?
How do you start a new one, post messages to it, and how do you process them?
Unseam asked 7/4, 2011 at 13:16
3
Solved
I was trying to find an example about how to use TryScan, but haven't found any, could you help me?
What I would like to do (quite simplified example): I have a MailboxProcessor that accepts
two...
Caput asked 2/2, 2011 at 21:39
1
Solved
I'm using MailboxProcessor classes in order to keep separate agents that do their own thing. Normally agents can communicate with one another in the same process, but I want agents to talk to one a...
Sweeps asked 31/1, 2011 at 14:45
1
© 2022 - 2024 — McMap. All rights reserved.