instalation is simple just use the command
pip install OhMyDecorators
or
pip3 install OhMyDecorators
The RunFunctionInThread function takes in the function and the thread timeout time as a float and when you run the function decorated with this that function will get it's own thread
Example:
from OhMyDecorators import Concurrency
@Concurrency.RunFunctionInThread(100000)
def Test():
print("Hello World")
The RunFunctionOnGpu function takes in a function and when you run the function decorated with this it will exacute on the gpu
Example:
from OhMyDecorators import Concurrency
@Concurrency.RunFunctionOnGpu()
def Test():
print("Hello World")