poison.core.threading
Source
Module for threading.
Authors:
Jacob Jensen
License:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
Imports
std.concurrency : send, receive, Tid, thisTid, receiveTimeout
core.thread : dur
poison.core.action
public:
public @property bool isUIThread();
Gets a boolean determining whether the current thread is the ui thread.
public void executeUI(void function() f);
Executes an action on the UI thread.
Parameters:
f The function pointer to execute.
public void executeUI(void delegate() d);
Executes an action on the UI thread.
Parameters:
d The delegate to execute.
public void executeUI(Action action);
Executes an action on the UI thread.
Parameters:
action The action to execute.
public void receiveMessages();
Receives all messages for the current thread and executes them.
Generated by venom - Poison Engine's Documentation Generator
Module for threading.
Authors:
Jacob JensenLicense:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSEImports
std.concurrency : send, receive, Tid, thisTid, receiveTimeoutcore.thread : dur
poison.core.action
public @property bool isUIThread();
Gets a boolean determining whether the current thread is the ui thread.
public void executeUI(void function() f);
Executes an action on the UI thread.
Parameters:
f | The function pointer to execute. |
public void executeUI(void delegate() d);
Executes an action on the UI thread.
Parameters:
d | The delegate to execute. |
public void executeUI(Action action);
Executes an action on the UI thread.
Parameters:
action | The action to execute. |
public void receiveMessages();
Receives all messages for the current thread and executes them.