# How to wait for web responses

**URL:** <https://ifnotnil.com/t/how-to-wait-for-web-responses/1849>\
**Category:** Web\
**Created:** [24 June 2021 02:29 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849 "2021-06-24T02:29:34Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![thommcgrath](https://ifnotnil.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@thommcgrath](https://ifnotnil.com/u/thommcgrath)\
**Post date:** [7 July 2021 15:49 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/22 "2021-07-07T15:49:22Z")

</div>

Xojo

---

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [7 July 2021 15:54 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/23 "2021-07-07T15:54:14Z")

</div>

> [@thommcgrath](#):
>
> 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)

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [7 July 2021 16:01 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/24 "2021-07-07T16:01:58Z")

</div>

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

> [@thommcgrath](#):
>
> In this case, it’s safe because App is never going out of scope.

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 🙂

> [@Meestor\_X](#):
>
> Huh! Interesting. Never saw “Event” or “WeakAddressOf” or “CallLater”. Maybe these are recent changes? (I’m sticking with 2019r1.1 for the foreseeable future)

Those are all in 2019r1.1

---

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [7 July 2021 16:18 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/25 "2021-07-07T16:18:24Z")

</div>

> [@npalardy](#):
>
> 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`?

---

<div class="post-metadata">

**Author:** ![Karen](https://ifnotnil.com/letter_avatar_proxy/v4/letter/k/7feea3/32.png) [@Karen](https://ifnotnil.com/u/Karen)\
**Post date:** [7 July 2021 16:25 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/26 "2021-07-07T16:25:37Z")

</div>

> [@Meestor\_X](#):
>
> Huh! Interesting. Never saw “Event” or “WeakAddressOf” or “CallLater”. Maybe these are recent changes? (I’m sticking with 2019r1.1 for the foreseeable future)

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](https://web.archive.org/web/20210122162416/http://katkosoft.com/Persistent%20Timer/PersistentTimer.html)

---

<div class="post-metadata">

**Author:** ![thommcgrath](https://ifnotnil.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@thommcgrath](https://ifnotnil.com/u/thommcgrath)\
**Post date:** [7 July 2021 16:49 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/27 "2021-07-07T16:49:19Z")

</div>

> [@Meestor\_X](#):
>
> `.CallLater` seems to be a `Xojo.Core.Timer` function. Any reason to use `Xojo.Core.Timer` instead of `Timer`?

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.

---

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [9 July 2021 04:10 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/28 "2021-07-09T04:10:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![beatrixwillius](https://ifnotnil.com/user_avatar/ifnotnil.com/beatrixwillius/32/24_2.png) [@beatrixwillius](https://ifnotnil.com/u/beatrixwillius)\
**Post date:** [9 July 2021 04:22 UTC](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849/29 "2021-07-09T04:22:21Z")

</div>

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

[Previous page](https://ifnotnil.com/t/how-to-wait-for-web-responses/1849.md?page=1)
