oremanj / greenback

Reenter an asyncio or Trio event loop from synchronous code
https://greenback.readthedocs.io/
Other
80 stars 2 forks source link

Add decorate_as_sync() #14

Closed oremanj closed 2 years ago

oremanj commented 2 years ago

This helper eases the application of a synchronous decorator (like functools.lru_cache) to an async function.

codecov[bot] commented 2 years ago

Codecov Report

Merging #14 (046879d) into master (85dd780) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          705       734   +29     
  Branches       109       109           
=========================================
+ Hits           705       734   +29     
Flag Coverage Δ
cpython 99.18% <100.00%> (+0.31%) :arrow_up:
pypy36release 94.05% <100.00%> (+0.23%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
greenback/__init__.py 100.00% <100.00%> (ø)
greenback/_tests/test_util.py 100.00% <100.00%> (ø)
greenback/_util.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 85dd780...046879d. Read the comment docs.