Gotta go fast!

This commit is contained in:
Johnny Rocketfingers 2017-05-03 11:50:33 +02:00 committed by Johnny
parent 9527e5ded8
commit 2ec25dd810

View File

@ -568,6 +568,13 @@ class Sanic:
self.is_running = False
log.info("Server Stopped")
# -------------------------------------------------------------------- #
# Goin' fast
# -------------------------------------------------------------------- #
def go_fast(self, *args, **kwargs):
self.run(*args, **kwargs)
def stop(self):
"""This kills the Sanic"""
get_event_loop().stop()