<commit_before># node-barrierpoints

This library provides minimal controll flow based on barrier points, as known from other languages like Java for example (`java.util.concurrent.CountDownLatch` / `java.util.concurrent.CyclicBarrier`).

## Usage

Create a barrier object, with a required count of parties to wait for and optional callback for success or abortion: 

	var barrier = new Barrier(count, successCallback, abortCallback);

Within each party code, you ''must'' either call `barrier.submit()` or `barrier.abort()` in order to signal the outcome.

For more examples, please have a look at the `examples/` directory.
	
<commit_msg>initial commit<commit_after># node-barrierpoints

This library provides minimal controll flow based on barrier points, as known from other languages like Java for example (`java.util.concurrent.CountDownLatch` / `java.util.concurrent.CyclicBarrier`).

## Usage

Create a barrier object, with a required count of parties to wait for and optional callback for success or abortion: 

	var barrier = new Barrier(count, successCallback, abortCallback);

Within each party code, you *must* either call `barrier.submit()` or `barrier.abort()` in order to signal the outcome.

For more examples, please have a look at the `examples/` directory.
	

{'fraction_non_alphanumeric': 0.07818608287724785, 'fraction_numerical': 0.0, 'mean_word_length': 5.037735849056604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6011003', 'n_tokens_mistral': 344, 'n_tokens_neox': 322, 'n_words': 157}