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
I have a use case where (sometimes) I need to access the DB to get some info about what a user can do. That's not possible without async functions in policies. I had to rewrite some things to make it work.
I think adding native support to async functions in Policies would be a nice new feature.
The text was updated successfully, but these errors were encountered:
I'm interested in making a PR for this feature but I don't have much experience with TypeScript.
Also, in order to call await Promise.all(), we would need to make some() and every() async functions as well. It would break existing applications. beforeAll() in particular, depends on the return value of the promise to return or call another function.
We can make all functions asynchronous in a new version or make brand new async functions to handle it.
I have a use case where (sometimes) I need to access the DB to get some info about what a user can do. That's not possible without async functions in policies. I had to rewrite some things to make it work.
I think adding native support to async functions in Policies would be a nice new feature.
The text was updated successfully, but these errors were encountered: