Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

ratatoskr.threadutil

Seamus Smith edited this page Apr 29, 2022 · 3 revisions

ratatoskr.threadutil

threadpool_decorator(threads=None)

Threads: Max amount of threads within the thread pool. Defaults to the amount of threads the CPU has

Returns: A decorator that makes functions execute asynchronously within a threadpool

daemon(func)

Decorator function. This basically makes the given function spawn a daemon thread and execute asynchronously. The function should not return any value, as this decorator will make the function return None.