You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
call_deferred("_request_done" is basically storing a function-to-call later as a name + args
and _request_done is a function of this class, registered here:
That will be looked-up by StringName ( slightly accelerated form of interning string class )
So we perform some string construction, lookups, etc, just to do something that in Qt is a simple
Just take a look at the following bit of logic from
HTTPRequest
class:call_deferred("_request_done"
is basically storing a function-to-call later as a name + argsand
_request_done
is a function of this class, registered here:That will be looked-up by StringName ( slightly accelerated form of interning string class )
So we perform some string construction, lookups, etc, just to do something that in Qt is a simple
And without mentioning Qt at all, this can be done using a queue storing std::function'like objects instead.
The text was updated successfully, but these errors were encountered: