Izzimach / stm-loader

Asynchronous file/resource loading in haskell, via STM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stm-loader

Haskell code to fork off a separate thread that loads and unloads "resources" which could be anything but are typically chunks of data loaded from disk or the network.

  • Communicate via STM: put a request in one STM variable, and once the resources are loaded they appear in a separate STM variable
  • Support multiple threads and task groups via import Control.Concurrent.Async.Pool
  • Dependencies are specified declaratively. Loads and unloads are sequenced so that a resource is not loaded before it's dependencies or unloaded after it's dependencies.

About

Asynchronous file/resource loading in haskell, via STM

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%