<?xml version="1.0"?>
<page id="Gimp.PlugIn.persistent_process"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.PlugIn" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_plug_in_persistent_process</api:name>
      <api:arg>
        <api:type>Number(guint)</api:type>
        <api:name>timeout</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.PlugIn.prototype.persistent_process</title>
  <synopsis><code mime="text/x-gjs">
function persistent_process(timeout: Number(guint)): void {
    // Gjs wrapper for gimp_plug_in_persistent_process()
}
  </code></synopsis>
  <p>Processes one message sent by GIMP and returns.</p>  <p>Call this function in an endless loop after calling
[method@Gimp.Procedure.persistent_ready] to process requests for
running temporary procedures.</p>  <p>See [method@PlugIn.persistent_enable] for an asynchronous way of
doing the same if running an endless loop is not an option.</p>  <p>See also: [method@PlugIn.add_temp_procedure].</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>timeout</code></title>
  <p>The timeout (in ms) to use for the select() call.</p>
</item>
</terms>

</page>
