forked from goodboy/tractor
1
0
Fork 0

Only accept asyncfunc response type

drop_sync_funcs
Tyler Goodlet 2021-04-27 11:39:41 -04:00
parent 1f1619c730
commit 89ce1a63e4
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Portal:
first_msg = await recv_chan.receive()
functype = first_msg.get('functype')
if functype == 'function' or functype == 'asyncfunction':
if functype == 'asyncfunc':
resp_type = 'return'
elif functype == 'asyncgen':
resp_type = 'yield'