paint-brush
Reducing Debugging Woes with Python Async Decoratorby@giwyni
2,936 reads
2,936 reads

Reducing Debugging Woes with Python Async Decorator

by [email protected]5mOctober 8th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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)
featured image - Reducing Debugging Woes with Python Async Decorator
vsvconsult@gmail.com HackerNoon profile picture

L O A D I N G
. . . comments & more!

About Author

vsvconsult@gmail.com HackerNoon profile picture
[email protected]@giwyni

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite