You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syscall.CallAsync expects a callback with signature callback({env_dict}, {result_dict}), where env_dict contains cursor and vim state info. In practice, it's not easy to remember the argument order, and it's easy enough and more explicit/flexible for the caller to just capture the env info they need and bind it to the callback with maktaba#function#Create.
We should migrate Syscall.CallAsync to expect a signature callback({result_dict}) instead and just document how callers can capture and pass info along.
The text was updated successfully, but these errors were encountered:
Syscall.CallAsync
expects a callback with signaturecallback({env_dict}, {result_dict})
, where env_dict contains cursor and vim state info. In practice, it's not easy to remember the argument order, and it's easy enough and more explicit/flexible for the caller to just capture the env info they need and bind it to the callback withmaktaba#function#Create
.We should migrate
Syscall.CallAsync
to expect a signaturecallback({result_dict})
instead and just document how callers can capture and pass info along.The text was updated successfully, but these errors were encountered: