You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2023/08/28 12:51:08 UTC

[GitHub] [incubator-pekko] He-Pin opened a new issue, #596: StatefulMap can call `onComplete` twice if it throw

He-Pin opened a new issue, #596:
URL: https://github.com/apache/incubator-pekko/issues/596

   The current statefulmap only update the `needInvokeOnCompleteCallback` after the `onComplete(state)` been called successfully.
   And this can be a problem when you use it to implement something like `mapWithResource` where the undering thing can not be called twice.
   
   A quick fix should be set the `needInvokeOnCompleteCallback` to false before call `onComplete`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org