|
5900 | 5900 | <x path="Float"/> |
5901 | 5901 | <meta><m n=":value"><e>Math.NEGATIVE_INFINITY</e></m></meta> |
5902 | 5902 | </nextRun> |
5903 | | - <delay public="1" set="method" line="39"> |
| 5903 | + <delay public="1" set="method" line="40"> |
5904 | 5904 | <f a="t:?fromLastRun" v=":false"> |
5905 | 5905 | <x path="Null"><x path="Float"/></x> |
5906 | 5906 | <x path="Bool"/> |
|
5910 | 5910 | <haxe_doc>Delay the execution of the event for the given time, in seconds. |
5911 | 5911 | If t is null, the event will be run at next event loop.</haxe_doc> |
5912 | 5912 | </delay> |
5913 | | - <stop public="1" set="method" line="46"> |
| 5913 | + <stop public="1" set="method" line="47"> |
5914 | 5914 | <f a=""><x path="Void"/></f> |
5915 | 5915 | <haxe_doc>Stop this event from repeating.</haxe_doc> |
5916 | 5916 | </stop> |
5917 | | - <start public="1" set="method" line="53"> |
| 5917 | + <start public="1" set="method" line="54"> |
5918 | 5918 | <f a="callb"> |
5919 | 5919 | <f a=""><x path="Void"/></f> |
5920 | 5920 | <x path="Void"/> |
5921 | 5921 | </f> |
5922 | 5922 | <haxe_doc>Start the event with the given callback function.</haxe_doc> |
5923 | 5923 | </start> |
5924 | | - <isStopped public="1" set="method" line="61"> |
| 5924 | + <isStopped public="1" set="method" line="62"> |
5925 | 5925 | <f a=""><x path="Bool"/></f> |
5926 | 5926 | <haxe_doc>Tells if the event has been stopped.</haxe_doc> |
5927 | 5927 | </isStopped> |
5928 | | - <new set="method" line="30"><f a="loop:p"> |
| 5928 | + <new set="method" line="31"><f a="loop:p"> |
5929 | 5929 | <c path="haxe.EventLoop"/> |
5930 | 5930 | <x path="Int"/> |
5931 | 5931 | <x path="Void"/> |
|
5947 | 5947 | <haxe_doc>This is the current thread event loop. For platforms that doesn't support threads |
5948 | 5948 | it is the same as `main`.</haxe_doc> |
5949 | 5949 | </current> |
5950 | | - <hasRunningThreads public="1" set="method" line="432" static="1"> |
| 5950 | + <hasRunningThreads public="1" set="method" line="446" static="1"> |
5951 | 5951 | <f a=""><x path="Bool"/></f> |
5952 | 5952 | <haxe_doc>Tells if we currently have blocking unfinished threads.</haxe_doc> |
5953 | 5953 | </hasRunningThreads> |
5954 | | - <addTask public="1" set="method" line="466" static="1"> |
| 5954 | + <addTask public="1" set="method" line="483" static="1"> |
5955 | 5955 | <f a="f:?blocking" v=":true"> |
5956 | 5956 | <f a=""><x path="Void"/></f> |
5957 | 5957 | <x path="Bool"/> |
5958 | 5958 | <x path="Void"/> |
5959 | 5959 | </f> |
5960 | 5960 | <meta><m n=":value"><e>{ blocking : true }</e></m></meta> |
5961 | | - <haxe_doc>Add a task to be run either on another thread or as part of the main event loop if the |
5962 | | - platform does not support threads.</haxe_doc> |
| 5961 | + <haxe_doc>Adds `f` as a thread task on the main thread.</haxe_doc> |
5963 | 5962 | </addTask> |
5964 | | - <get_current set="method" line="489" static="1"><f a=""><c path="haxe.EventLoop"/></f></get_current> |
5965 | | - <get_main set="method" line="499" static="1"><f a=""><c path="haxe.EventLoop"/></f></get_main> |
| 5963 | + <get_current set="method" line="522" static="1"><f a=""><c path="haxe.EventLoop"/></f></get_current> |
| 5964 | + <get_main set="method" line="532" static="1"><f a=""><c path="haxe.EventLoop"/></f></get_main> |
5966 | 5965 | <events><c path="haxe.Event"/></events> |
5967 | 5966 | <queue><c path="haxe.Event"/></queue> |
5968 | 5967 | <inLoop><x path="Bool"/></inLoop> |
|
5976 | 5975 | <x path="Bool"/> |
5977 | 5976 | <meta><m n=":value"><e>false</e></m></meta> |
5978 | 5977 | </inNative> |
5979 | | - <dispose public="1" set="method" line="125"> |
| 5978 | + <dispose public="1" set="method" line="128"> |
5980 | 5979 | <f a=""><x path="Void"/></f> |
5981 | 5980 | <haxe_doc>This should be called after you are finished with a custom event loop. |
5982 | 5981 | It is already automatically called for threads loops.</haxe_doc> |
5983 | 5982 | </dispose> |
5984 | | - <loop public="1" set="method" line="133"> |
| 5983 | + <loop public="1" set="method" line="136"> |
5985 | 5984 | <f a=""><x path="Void"/></f> |
5986 | 5985 | <haxe_doc>Runs until all the blocking events have been stopped. |
5987 | 5986 | If this is called on the main thread, also wait for all blocking threads to finish.</haxe_doc> |
5988 | 5987 | </loop> |
5989 | | - <promise public="1" set="method" line="151"> |
| 5988 | + <promise public="1" set="method" line="165"> |
5990 | 5989 | <f a=""><x path="Void"/></f> |
5991 | 5990 | <haxe_doc>Promise a possible future event addition. This will prevent the `loop()` from terminating until the matching number of `deliver()` calls have been made.</haxe_doc> |
5992 | 5991 | </promise> |
5993 | | - <deliver public="1" set="method" line="160"> |
| 5992 | + <deliver public="1" set="method" line="174"> |
5994 | 5993 | <f a=""><x path="Void"/></f> |
5995 | 5994 | <haxe_doc>Deliver after a `promise()`. This will throw an exception if more `deliver()` calls has been made than corresponding `promise()` calls.</haxe_doc> |
5996 | 5995 | </deliver> |
5997 | | - <wakeup get="inline" set="null" line="172"><f a=""><x path="Void"/></f></wakeup> |
5998 | | - <wait get="inline" set="null" line="178"><f a="time"> |
| 5996 | + <wakeup get="inline" set="null" line="186"><f a=""><x path="Void"/></f></wakeup> |
| 5997 | + <wait get="inline" set="null" line="192"><f a="time"> |
5999 | 5998 | <x path="Float"/> |
6000 | 5999 | <x path="Void"/> |
6001 | 6000 | </f></wait> |
6002 | | - <lock get="inline" set="null" line="186"><f a=""><x path="Void"/></f></lock> |
6003 | | - <unlock get="inline" set="null" line="192"><f a=""><x path="Void"/></f></unlock> |
6004 | | - <checkThread set="method" line="198"><f a=""><x path="Void"/></f></checkThread> |
6005 | | - <loopOnce public="1" set="method" line="209"> |
| 6001 | + <lock get="inline" set="null" line="200"><f a=""><x path="Void"/></f></lock> |
| 6002 | + <unlock get="inline" set="null" line="206"><f a=""><x path="Void"/></f></unlock> |
| 6003 | + <checkThread set="method" line="212"><f a=""><x path="Void"/></f></checkThread> |
| 6004 | + <loopOnce public="1" set="method" line="223"> |
6006 | 6005 | <f a="?threadCheck" v="true"> |
6007 | 6006 | <x path="Bool"/> |
6008 | 6007 | <x path="Void"/> |
|
6012 | 6011 | By default, an event loop from a thread can only be triggered from this thread. |
6013 | 6012 | You can set `threadCheck` to false in the rare cases you might want otherwise.</haxe_doc> |
6014 | 6013 | </loopOnce> |
6015 | | - <add public="1" set="method" line="252"> |
| 6014 | + <add public="1" set="method" line="266"> |
6016 | 6015 | <f a="callb:?priority" v=":0"> |
6017 | 6016 | <f a=""><x path="Void"/></f> |
6018 | 6017 | <x path="Int"/> |
|
6021 | 6020 | <meta><m n=":value"><e>{ priority : 0 }</e></m></meta> |
6022 | 6021 | <haxe_doc>Add a callback to be run at each loop of the event loop.</haxe_doc> |
6023 | 6022 | </add> |
6024 | | - <addAsync public="1" set="method" line="263"> |
| 6023 | + <addAsync public="1" set="method" line="277"> |
6025 | 6024 | <f a="?priority" v="0"> |
6026 | 6025 | <x path="Int"/> |
6027 | 6026 | <c path="haxe.Event"/> |
|
6031 | 6030 | This is useful if you wish to hold a reference of another thread Event loop |
6032 | 6031 | before it runs.</haxe_doc> |
6033 | 6032 | </addAsync> |
6034 | | - <addTimer public="1" set="method" line="270"> |
| 6033 | + <addTimer public="1" set="method" line="284"> |
6035 | 6034 | <f a="callb:delay:?priority" v="::0"> |
6036 | 6035 | <f a=""><x path="Void"/></f> |
6037 | 6036 | <x path="Float"/> |
|
6041 | 6040 | <meta><m n=":value"><e>{ priority : 0 }</e></m></meta> |
6042 | 6041 | <haxe_doc>Add a callback to be run every `delay` seconds until stopped</haxe_doc> |
6043 | 6042 | </addTimer> |
6044 | | - <repeat public="1" set="method" line="277"> |
| 6043 | + <repeat public="1" set="method" line="291"> |
6045 | 6044 | <f a="callb:delay"> |
6046 | 6045 | <f a=""><x path="Void"/></f> |
6047 | 6046 | <x path="Int"/> |
|
6052 | 6051 | <m n=":noCompletion"/> |
6053 | 6052 | </meta> |
6054 | 6053 | </repeat> |
6055 | | - <cancel public="1" set="method" line="281"> |
| 6054 | + <cancel public="1" set="method" line="295"> |
6056 | 6055 | <f a="e"> |
6057 | 6056 | <c path="haxe.Event"/> |
6058 | 6057 | <x path="Void"/> |
|
6062 | 6061 | <m n=":noCompletion"/> |
6063 | 6062 | </meta> |
6064 | 6063 | </cancel> |
6065 | | - <run public="1" set="method" line="288"> |
| 6064 | + <run public="1" set="method" line="302"> |
6066 | 6065 | <f a="callb:?priority" v=":0"> |
6067 | 6066 | <f a=""><x path="Void"/></f> |
6068 | 6067 | <x path="Int"/> |
|
6071 | 6070 | <meta><m n=":value"><e>{ priority : 0 }</e></m></meta> |
6072 | 6071 | <haxe_doc>Add a function to be run once at next loop of the event loop.</haxe_doc> |
6073 | 6072 | </run> |
6074 | | - <start set="method" line="294"><f a="e"> |
| 6073 | + <start set="method" line="308"><f a="e"> |
6075 | 6074 | <c path="haxe.Event"/> |
6076 | 6075 | <x path="Void"/> |
6077 | 6076 | </f></start> |
6078 | | - <stop set="method" line="311"><f a="e"> |
| 6077 | + <stop set="method" line="325"><f a="e"> |
6079 | 6078 | <c path="haxe.Event"/> |
6080 | 6079 | <x path="Void"/> |
6081 | 6080 | </f></stop> |
6082 | | - <getNextTick set="method" line="340"><f a=""><x path="Float"/></f></getNextTick> |
6083 | | - <sortEvents set="method" line="362"><f a=""><x path="Void"/></f></sortEvents> |
6084 | | - <hasEvents public="1" set="method" line="444"> |
| 6081 | + <getNextTick set="method" line="354"><f a=""><x path="Float"/></f></getNextTick> |
| 6082 | + <sortEvents set="method" line="376"><f a=""><x path="Void"/></f></sortEvents> |
| 6083 | + <hasRunningThreadTasks set="method" line="450"><f a=""><x path="Bool"/></f></hasRunningThreadTasks> |
| 6084 | + <hasEvents public="1" set="method" line="462"> |
6085 | 6085 | <f a="?blocking" v="true"> |
6086 | 6086 | <x path="Bool"/> |
6087 | 6087 | <x path="Bool"/> |
|
6090 | 6090 | <haxe_doc>Tells if the event loop has remaining events. |
6091 | 6091 | If blocking is set to true, only check if it has remaining blocking events.</haxe_doc> |
6092 | 6092 | </hasEvents> |
6093 | | - <new public="1" set="method" line="114"><f a=""><x path="Void"/></f></new> |
| 6093 | + <addThreadTask public="1" set="method" line="491"> |
| 6094 | + <f a="f:?blocking" v=":true"> |
| 6095 | + <f a=""><x path="Void"/></f> |
| 6096 | + <x path="Bool"/> |
| 6097 | + <x path="Void"/> |
| 6098 | + </f> |
| 6099 | + <meta><m n=":value"><e>{ blocking : true }</e></m></meta> |
| 6100 | + <haxe_doc>Add a task to be run either on another thread or as part of this event loop if the |
| 6101 | + platform does not support threads.</haxe_doc> |
| 6102 | + </addThreadTask> |
| 6103 | + <new public="1" set="method" line="116"><f a=""><x path="Void"/></f></new> |
6094 | 6104 | <haxe_doc>Handles async events for all threads</haxe_doc> |
6095 | 6105 | <meta><m n=":access"><e>haxe.Event</e></m></meta> |
6096 | 6106 | </class> |
|
0 commit comments