<commit_before># thread-exec


Intelligent thread execution and pooling that automatically create different pools to isolate slow running tasks from faster running tasks and avoid the system slowing down

The api is written in clojure but also has native java bindings.

[thread-exec "0.2.0-SNAPSHOT"]

For maven integration please read: https://clojars.org/thread-exec

## Usage

```clojure
(require '[thread-exec.core :refer :all])

; Use the thread-load factory

(require '[thread-load.api :as api])

(def f (api/thread-load-factory :latency-grouped [(fn [_ msg] (prn "wow"))] {}))
(f :a)
;; sends with key :default
(f :k1 :a)
;; sends with key :k1
<commit_msg>add readme badges<commit_after># thread-exec


Intelligent thread execution and pooling that automatically create different pools to isolate slow running tasks from faster running tasks and avoid the system slowing down

The api is written in clojure but also has native java bindings.

[![Build Status](https://travis-ci.org/gerritjvv/thread-exec.svg)](https://travis-ci.org/gerritjvv/thread-exec)

[![Clojars Project](http://clojars.org/thread-exec/latest-version.svg)](http://clojars.org/thread-exec)

For maven integration please read: https://clojars.org/thread-exec

## Usage

```clojure
(require '[thread-exec.core :refer :all])

; Use the thread-load factory

(require '[thread-load.api :as api])

(def f (api/thread-load-factory :latency-grouped [(fn [_ msg] (prn "wow"))] {}))
(f :a)
;; sends with key :default
(f :k1 :a)
;; sends with key :k1

{'fraction_non_alphanumeric': 0.13175230566534915, 'fraction_numerical': 0.00461133069828722, 'mean_word_length': 4.7105263157894735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3535419', 'n_tokens_mistral': 512, 'n_tokens_neox': 489, 'n_words': 168}