Is there a way in Kyoukai to lock a route to only process one request at a time or even using something already in the language?
For example:
@app.route('/status')
async def index(ctx):
if status_lock.acquire(False):
# do long operations here
return json.dumps({'message': 'Complete'})
else:
return json.dumps({'message': 'A request on status is already running'})
Is there a way in Kyoukai to lock a route to only process one request at a time or even using something already in the language?
For example: