Skip to content

Commit

Permalink
updated async driver
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Oct 8, 2018
1 parent 74bda77 commit a1f1fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions masonite/drivers/QueueAsyncDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, Container):

self.container = Container

def push(self, *objects):
def push(self, *objects, args=()):
"""Push objects onto the async stack.
Arguments:
Expand All @@ -32,5 +32,5 @@ def push(self, *objects):
obj = self.container.resolve(obj)

thread = threading.Thread(
target=obj.dispatch(), args=(), kwargs={})
target=obj.handle, args=args, kwargs={})
thread.start()

0 comments on commit a1f1fb7

Please sign in to comment.