<commit_before>#Asynchronous loop API

The API for implementing your own loop with busted is fairly simple. It uses only two methods.

1. settimeout(seconds, callback)
1. step()

## settimeout(seconds, callback)
This (optional) method should create a `timer` object. The object should have a single method `stop` to cancel the timer. And after the period of `seconds` number of seconds has elapsed, it should call `callback()` (the callback does not take any parameters).

If you do not provide a `settimeout` method, then  busted might hang on faulty tests. A test will generally only exit on;

1. success
2. failure (explicit, eg. an `error` or `assert` call, caught by the `async` callback wrapper)
3. on timeout

So if you do not provide a `settimeout` method and a test neither fails nor succeeds, it will hang.<commit_msg>fix documentation error<commit_after>#Asynchronous loop API

The API for implementing your own loop with busted is fairly simple. It uses only two methods.

1. settimeout(seconds, callback)
1. step()

## create_timer(seconds, callback)
This (optional) method should create a `timer` object. The object should have a single method `stop` to cancel the timer. And after the period of `seconds` number of seconds has elapsed, it should call `callback()` (the callback does not take any parameters).

If you do not provide a `create_timer` method, then  busted might hang on faulty tests. A test will generally only exit on;

1. success
2. failure (explicit, eg. an `error` or `assert` call, caught by the `async` callback wrapper)
3. on timeout

So if you do not provide a `create_timer` method and a test neither fails nor succeeds, it will hang.
{'fraction_non_alphanumeric': 0.07057416267942583, 'fraction_numerical': 0.005980861244019139, 'mean_word_length': 4.521452145214521, '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': '6481502', 'n_tokens_mistral': 447, 'n_tokens_neox': 438, 'n_words': 261}