Using F# agents and cancellation tokens to manage background jobs

In a previous post, I created an F# agent that runs background computations.  However, it was limited in that it allowed the user no control over the jobs.  Really, I want a more flexible system that allows the user to cancel currently running jobs.  To implement this, I used F# agents (the MailboxProcessor class) to start jobs and…

4

Using F# agents to manage background jobs

In a previous post, I started out with some simple F# agents.  As we saw previously, agents process messages in a queue and perform actions in response. In the previous post, I created a simple console application that starts an agent, and then starts a loop that reads each line of input from the console and submits…

0

F# agents with timeouts

In my previous post, I showed a code snippet with a very simple F# agent console application.  You run the app from the console, and every time you enter a line of text, it generates a new message and posts it to the message queue of an F# agent.  An agent is an instance of…

1

Welcome to Gordon Hogenson’s F# Blog

I’m the technical writer who wrote most of the MSDN documentation for F#, and I decided to start a less formal channel of communication to share some of what I’m learning about F# and associated technologies. But first a few notes about how to let me know about problems and other feedback for the F# MSDN docs. …

3