Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(callbacks): latent callbcks #656

Closed
wants to merge 1 commit into from

Conversation

someone005
Copy link

Add latent version of functions:

  • lib.callback -> lib.callback.latent
  • lib.callback.register -> lib.callback.registerLatent
  • lib.callback.await -> lib.callback.latentAwait

Idea from issue #651

@thelindat
Copy link
Member

thelindat commented Oct 24, 2024

The original plan was to check the size of the payload and use latent events automatically if deemed too large.

Unfortunately latent events have had a number of issues and numerous cfx devs have recommended against their usage. Last I asked they were still discouraged but I need to confirm if they work or not; last I heard there was a memory issue, but that's still preferable to network hitches.

Lastly, if and when I implement this I intend to work on a new RPC class to supersede callbacks.

@thelindat thelindat closed this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants