• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Library] samp-server-info-obtainer
#2
That's a nice idea. However, why are you passing an async callback, which isn't used in an async context, and passed to `then`? Why not just return the Promise directly and make `connect` `async`?

Edit: In fact the whole code is a strange mix of async, promises, and callbacks. Just stick with one model.
  Reply


Messages In This Thread
samp-server-info-obtainer - by KyroKun - 2021-03-07, 11:32 PM
RE: samp-server-info-obtainer - by Y_Less - 2021-03-14, 02:12 AM
RE: samp-server-info-obtainer - by KyroKun - 2021-03-27, 09:30 PM
RE: samp-server-info-obtainer - by KyroKun - 2021-05-05, 01:51 PM

Forum Jump: