Friday 15 June 2012

scala - Any there Disadvantages to Ignoring the Completion of a Future? -


I used to run a few code in asynchronous way, without using an actor, in a fire-and-forgotten way Would like to

  def myAsyncCode = {future {// do something}} def myCaller {myAsyncCode // is continuing to do something else}   

with futures As a beginner, I'm not sure if their expiration can lead to unseen memory leaks, or other adverse effects?

There is no problem with it, of course, if you want to deal with particular failures.

No comments:

Post a Comment