This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: nwVdd4rnbhmJQz6tYlZHaJGWBFceT_MAHerJmntt4wI
Cover

Reducing Debugging Woes with Python Async Decorator

Written by @giwyni | Published on 2019/10/8

TL;DR
Python Async Decorator is a decorator for the Python programming language. The decorator logs exceptions as they occur and hence the problem shows up in your logs immediately. The problem is that the calling process is waiting on an 'await' and hence ends up not processing any exceptions, resulting in a 'Whats happening? When the what happened?' situation depicted above. The code below is a simple program containing two. processes, one generating data for the other executing indefinitely (or forever -- limited to 30 seconds in the demo below)

[story continues]


Written by
@giwyni
Get it when you need it (GIWYNI) is my handle. Knowledge can clog your creativity..

Topics and
tags
python|async|async-decorator|python-async-decorator|async-program|async-process|doprocessing-and-callprocessing|latest-tech-stories
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: nwVdd4rnbhmJQz6tYlZHaJGWBFceT_MAHerJmntt4wI