2 ms·
I don’t see the utility here. You’re still duplicating code inside the template function with context managers. The decorator would be a lot more useful if it
by RS-232 1y ago
I don’t see the utility here. You’re still duplicating code inside the template function with context managers.
The decorator would be a lot more useful if it abstracted all that away automagically. I/O bound stuff could be async and everything else would be normal.