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
If isNotAdmin would be a sync function, it would not be evaluated in case the current user is either a SuperUser (can delete any user), or a regular non-admin user (can't delete any user).
The way tink_await transforms this code, isNotAdmin(id) is eagerly evaluated, and only then the whole expression is evaluated.
Would it be possible to optimize this?
The text was updated successfully, but these errors were encountered:
Consider the following example:
If
isNotAdmin
would be a sync function, it would not be evaluated in case the current user is either a SuperUser (can delete any user), or a regular non-admin user (can't delete any user).The way
tink_await
transforms this code,isNotAdmin(id)
is eagerly evaluated, and only then the whole expression is evaluated.Would it be possible to optimize this?
The text was updated successfully, but these errors were encountered: