* Migrate from aioredis to redis with asyncio support Add test for redis type Fix imports from wrong module (for tests_sync) * fixing merge conflicts and up to dating the lock file Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import inspect
 | 
						|
 | 
						|
 | 
						|
def is_async_mode():
 | 
						|
    async def f():
 | 
						|
        """Unasync transforms async functions in sync functions"""
 | 
						|
        return None
 | 
						|
 | 
						|
    return inspect.iscoroutinefunction(f)
 | 
						|
 | 
						|
 | 
						|
ASYNC_MODE = is_async_mode()
 |