rstd 0.1.0
Loading...
Searching...
No Matches
rstd::thread::JoinHandle< T > Class Template Referenceexport
module rstd

An owned handle to a thread, which joins the thread on drop. More...

Public Member Functions

auto thread () const -> Thread
 Extracts a handle to the underlying thread.
 
auto join () &&-> Result< ret_t >
 Waits for the associated thread to finish and returns its result.
 
auto is_finished () const -> bool
 Checks whether the associated thread has finished running.
 

Detailed Description

template<typename T>
class rstd::thread::JoinHandle< T >

An owned handle to a thread, which joins the thread on drop.

Template Parameters
TThe return type of the thread's closure.

The documentation for this class was generated from the following file: