浏览代码

...

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

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

3
 
3
 
4
 from asgiref.sync import async_to_sync,sync_to_async
4
 from asgiref.sync import async_to_sync,sync_to_async
5
 
5
 
6
+import inspect
7
+
6
 # from wsps.tasks_loop import *
8
 # from wsps.tasks_loop import *
7
 
9
 
8
 # wsps.
10
 # wsps.
21
 	# if 
23
 	# if 
22
 	# return HttpResponse("fn_v?") 
24
 	# return HttpResponse("fn_v?") 
23
 	if (glob_cl.has_cl):
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
 		async_to_sync(glob_cl.acl.group_send)("av2",{"hi":"test"})
29
 		async_to_sync(glob_cl.acl.group_send)("av2",{"hi":"test"})
26
 		return HttpResponse("fn_v has_cl") 
30
 		return HttpResponse("fn_v has_cl") 

正在加载...
取消
保存