Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template on_timeout

boost::ui::on_timeout — Calls function one time after the specified time duration.

Synopsis

// In header: <boost/ui/application.hpp>


template<typename Rep, typename Period, typename F, class ... Args> 
  void on_timeout(const std::chrono::duration< Rep, Period > & d, F && f, 
                  Args &&... args);

Description

Usage example:

ui::on_timeout(std::chrono::milliseconds(1000),
               []{ BOOST_UI_LOG; }
              );

See Also:

BOOST_UI_USE_CHRONO

See Also:

BOOST_UI_USE_DATE_TIME

See Also:

Timeout (Wikipedia)

See Also:

Timer (Wikipedia)


PrevUpHomeNext