How to wait for web responses

Xojo

Huh! Interesting. Never saw “Event” or “WeakAddressOf” or “CallLater”. Maybe these are recent changes? (I’m sticking with 2019r1.1 for the foreseeable future)

it would
making weakaddress of also check would be in that same category IMHO

In this specific use case, since its at app close, its likely true
But there are still times when the App() method does return NIL :slight_smile:

Those are all in 2019r1.1

Huh!
I see why I never saw “Event” before:

Event

Language Keyword

An event is a special type of method that is typically called when an action occurs.

Notes

You do not directly use this keyword in your Xojo code. You add events and event handlers to classes using the Add button on the Command Bar.

.CallLater seems to be a Xojo.Core.Timer function. Any reason to use Xojo.Core.Timer instead of Timer?

CallLater was part of the Xojo. framework so if you never used that you would to have seen it. As I never adopted the Xojo framework, I wrote my own CallLater for API 1 long ago.

https://web.archive.org/web/20210122162416/http://katkosoft.com/Persistent%20Timer/PersistentTimer.html

CallLater is essentially a convenience function to create a single execution timer and fire a method. There’s not a technical reason to use one over the other, besides convenience.

Copy. But what’s the difference between Xojo.Core.Timer vs the regular one?

Xojo.Core.Timer is part of the aborted next gen Xojo before API 2.

1 Like