Skip to content

Threading decorators #28

Closed
Closed
@caffeine-addictt

Description

@caffeine-addictt

Feature Request

Your issue may already be reported!
Please check out our active issues before creating one.

Is Your Feature Request Related to an Issue?

In development, people may not want to explicitly wrap function every single time and would prefer not to use private functions with the public function wrapping the private function.

def _doWork(*args, **kwargs): ...

def doWork(*args, **kwargs):
  job = Thread(_doWork, args = args, kwargs = kwargs)
  return job

Describe the Solution You'd Like

An example of the feature

@thread.threaded
def doWork(*args, **kwargs): ...

#OR

@thread.threaded(args = ['defaultArg'], arg_mode = 'join | replace')
def doWork(*args, **kwargs): ...

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions