Send

Send transfers the type safely to another thread—in other words, if type T implements Send, then it means T has been passed safely to another thread.

There are a couple of caveats on using Send:

  • You don't use it for a process that is not thread safe (such as FFI)
  • Send has to be implemented for the type
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset