worker declaration not allowed in isolated function #37607
Replies: 1 comment
-
Worker declarations (and The worker has to meet conditions similar to that of an Since these conditions are met in your example, it will compile without an issue with Swan Lake Update 2. Please see the release note draft for more details about this change. |
Beta Was this translation helpful? Give feedback.
-
I got error ,
Error: worker declaration not allowed in an 'isolated' function!!
If i remove isolated keyword from compute then i will get error
Error: invalid invocation of a non-isolated function in an 'isolated' function
It works if i remove isolated keyword from resource but i get warning
Warning: concurrent calls will not be made to this method since the method is not an 'isolated' method
Is this warning normal or will cause any problem in production?
So how do i call function compute with worker within it?
Beta Was this translation helpful? Give feedback.
All reactions