<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=WaitForMainThread</id>
	<title>WaitForMainThread - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=WaitForMainThread"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=WaitForMainThread&amp;action=history"/>
	<updated>2026-07-21T20:54:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=WaitForMainThread&amp;diff=21532&amp;oldid=prev</id>
		<title>Xabi: Created page with &quot;Waits for the main thread before executing API related functions.  {{CSharpContainer| {{#tag:pre|Task&lt;object&gt;{{Template:CSharp_Serverside_namespace}}Task.WaitForMainThread([lo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=WaitForMainThread&amp;diff=21532&amp;oldid=prev"/>
		<updated>2022-12-23T14:03:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Waits for the main thread before executing API related functions.  {{CSharpContainer| {{#tag:pre|Task&amp;lt;object&amp;gt;{{Template:CSharp_Serverside_namespace}}Task.WaitForMainThread([lo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Waits for the main thread before executing API related functions.&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
{{#tag:pre|Task&amp;lt;object&amp;gt;{{Template:CSharp_Serverside_namespace}}Task.WaitForMainThread([long delayTime = 0]);}}&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;delayTime:&amp;#039;&amp;#039;&amp;#039; delay time in milliseconds until the action gets executed. Parameter input should be in &amp;#039;&amp;#039;&amp;#039;long&amp;#039;&amp;#039;&amp;#039; type&lt;br /&gt;
{{Example}}&lt;br /&gt;
{{#tag:syntaxhighlight|&lt;br /&gt;
{{Template:CSharp_Serverside_namespace}}Task.WaitForMainThread();&lt;br /&gt;
{{Template:CSharp_Serverside_namespace}}Chat.SendChatMessageToPlayer(player, &amp;quot;We are in main thread now.&amp;quot;);&lt;br /&gt;
|lang=csharp}}&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Serverside API]]&lt;/div&gt;</summary>
		<author><name>Xabi</name></author>
	</entry>
</feed>