Music Hub  ..
A session-wide music playback service
core::ubuntu::media::timeout Class Reference

#include <timeout.h>

+ Collaboration diagram for core::ubuntu::media::timeout:

Public Member Functions

template<class callable , class... arguments>
 timeout (int timeout_ms, bool async, callable &&f, arguments &&...args)
 Start a timeout with millisecond resolution. More...
 

Detailed Description

Definition at line 36 of file timeout.h.

Constructor & Destructor Documentation

template<class callable , class... arguments>
core::ubuntu::media::timeout::timeout ( int  timeout_ms,
bool  async,
callable &&  f,
arguments &&...  args 
)
inline

Start a timeout with millisecond resolution.

Parameters
timeout_msTimeout value in milliseconds
asyncWhether to block while the timeout proceeds or not
fThe function to call when the timeout expires
argsAny arguments to pass to f when the timeout expires

Definition at line 47 of file timeout.h.


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