浏览代码

...

master
jfinn 6 个月前
父节点
当前提交
63e539302b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      wsps/views.py

+ 4
- 0
wsps/views.py 查看文件

@@ -3,6 +3,8 @@ from django.http import HttpResponse
3 3
 
4 4
 from asgiref.sync import async_to_sync,sync_to_async
5 5
 
6
+import inspect
7
+
6 8
 # from wsps.tasks_loop import *
7 9
 
8 10
 # wsps.
@@ -21,6 +23,8 @@ def fn_v(request,*a,**kw):
21 23
 	# if 
22 24
 	# return HttpResponse("fn_v?") 
23 25
 	if (glob_cl.has_cl):
26
+		p("async_to_sync sig:",inspect.signature(async_to_sync))
27
+		p("group_send sig:",inspect.signature(glob_cl.acl.group_send))
24 28
 		
25 29
 		async_to_sync(glob_cl.acl.group_send)("av2",{"hi":"test"})
26 30
 		return HttpResponse("fn_v has_cl") 

正在加载...
取消
保存