<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - Deffered Routines
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../cat+en">Up</a>&nbsp;
<a href="object+en">Previous</a>&nbsp;
<a href="property+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
Deffered Routines
</h1>
<table class="table" border="0" bordercolor="#000000" cellpadding="4" cellspacing="0">
<tr class="dark"><td valign="top">
<tt><a href="../name/gb.checkpost+en">GB.CheckPost</a></tt>
</td><td valign="top">
Calls deferred routines if needed.
</td></tr>
<tr><td valign="top">
<tt><a href="../name/gb.post+en">GB.Post</a></tt>
</td><td valign="top">
Post a deffered routine.
</td></tr>
</table>
<p>
<h2>Overview</h2>
<p>
The interpreter or the components sometime need to deffer the execution
of a piece of code, because executing it immediately would be dangerous.
The <tt><a href="../name/gb.post+en">GB.Post</a></tt> routine is used for posting a deffered routine.
<p>
As the deffered piece of code is executed at the next event loop iteration,
components that implement the event loop must use the <tt><a href="../name/gb.checkpost+en">GB.CheckPost</a></tt>
routine.

</div>
</body>
</html>

