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
Careful decision will have to be made as to if we use RemoteEvents under-the-hood and then create a mock remotefunction-like interface in zap (so we don't yield the thread!).
The text was updated successfully, but these errors were encountered:
funct name = {
call: SingleAsync, -- SingleAsync or SingleSync
args: f64, -- Ty
rets: boolean -- Ty
}
Functions cannot be called from the server, only the client - so we can omit the from field.
Functions can only have one listener, so we only allow Single listeners.
Functions have different argument and return types, we we have two fields for them.
We also need to consider how we're going to handle yielding. Currently Zap does not yield, and ideally we have an option to allow users to choose between yield, promise-evaera, promise-nevermore, promise-redblox, and future. There might be other promise implementations, and we could support those as needed.
Supporting different promise implimentations feels like a pain!
We could have yield/promise/future - but other than that I believe it's not worth it.
After all - Promises should be using the same API...
Describe your feature
Events should be able to return a value
Alternatives
Creating two events (one for each way)
Implementation Details
Careful decision will have to be made as to if we use RemoteEvents under-the-hood and then create a mock remotefunction-like interface in zap (so we don't yield the thread!).
The text was updated successfully, but these errors were encountered: