Skip to content

This is a python library that as it's name suggests contains over 100+ function decorators for use in your programs

Notifications You must be signed in to change notification settings

A-Boring-Square/OhMyDecorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Installation

instalation is simple just use the command pip install OhMyDecorators or pip3 install OhMyDecorators

Docs

Concurrency

RunFunctionInThread

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")

RunFunctionOnGpu

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")

About

This is a python library that as it's name suggests contains over 100+ function decorators for use in your programs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages