Skip to content

slint::platform::Platform::Task Class

class Task;
C++
#include <slint-platform.h>
C++

A task that is passed to the Platform::run_in_event_loop function and needs to be run in the event loop and not in any other thread.

slint::platform::Platform::Task::~Task()
slint::platform::Platform::Task::Task(const Task &)=delete
Task & slint::platform::Platform::Task::operator=(const Task &)=delete
slint::platform::Platform::Task::Task(Task &&other)

Move constructor. A moved from Task can no longer be run.

Task & slint::platform::Platform::Task::operator=(Task &&other)

Move operator.

void slint::platform::Platform::Task::run() &&

Run the task.

Can only be invoked once and should only be called from the event loop.


© 2026 SixtyFPS GmbH