Questions from newcomer: async/non-blocking, dependencies etc

Hi everyone! I am a new at Anvil, but not new with Python (and JS/Front end hater :smiley: )
Have a few questions mostly for Anvil support and community:

  1. Are timers and events asynchronous/non-blocking(client side)?:
  • Two timers, one fires each 1s and takes 2s to finish func execution, another - fires each 30s and takes 30s to finish. Are they going to fire in non-blocking way?
  • timer fires each 1s and takes 2s to finish, at the same time child event fires to update repeating panel after post was deleted - non-blocking?
  1. Any plans on supporting native Material UI elements/components like switch, check lists, tabs, bars etc eventually? (by Anvil, not third-party devs)
  2. If my app uses dependencies form my project or from third-party by token - what’s going to happen if I will try to run my app on my server in stand-alone mode?
1 Like

To answer your questions

  1. Yes, they are asynchronous and can happen at the same time. Here is a demonstration
    Anvil | Login

  2. If you mean Anvil extras, the top contributor of it is a member of Anvil Staff itself so it is not as Third Party as you think.

1 Like

Thank you, @divyeshlakhotia !

Checked your example - yup, timers can run as non-blocking, that’s promising )
So I can begin with implementing socket.io , shouldn’t be that difficult. (or plain websocket, haven’t decided yet)

Question #2 and #3 are still open. Would be good to see those components natively with icon and etc.

For Question #3, you might want to read the docs here Indices and tables — Anvil Extras documentation (anvil-extras.readthedocs.io)

Otherwise, you can contact the Anvil Staff.

As for Question 2, adding icons and docs to a component is a popular feature request and hopefully, Anvil will add this feature soon.

Re: question 3, see the docs here!

1 Like

The forum is actually the best place for @briskspirit to ask these questions, and it means that when they’re answered, everyone can benefit from it!

4 Likes

Thank you @eli-anvil ! Strange that I wasn’t able to find that with Google…
And yes, that’s why I asked questions here - for future newcomers as Google has not a lot of answers :slight_smile:

1 Like

Where you able to to implement socket.io?

2 Likes