Reducing Debugging Woes with Python Async Decorator

Written by giwyni | Published 2019/10/08
Tech Story Tags: python | async | async-decorator | python-async-decorator | async-program | async-process | doprocessing-and-callprocessing | latest-tech-stories

TLDR 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)via the TL;DR App

no story

Written by giwyni | Get it when you need it (GIWYNI) is my handle. Knowledge can clog your creativity..
Published by HackerNoon on 2019/10/08