mtproto-core icon indicating copy to clipboard operation
mtproto-core copied to clipboard

using of Sync api

Open ehsan2003 opened this issue 4 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is. In nodejs ( and generally javascript) we should avoid using Sync api but used in : https://github.com/alik0211/mtproto-core/blob/master/envs/node/pbkdf2.js#L4

Expected behavior the module should not block the event loop by using Sync api, instead it should use callback or promise / async-await syntax

Context:

  • Library environment: node
  • Library version: 6.2.0
  • Node version (if node environment): x.x.x
  • Browser version (if browser environment): x.x.x

ehsan2003 avatar Apr 04 '22 09:04 ehsan2003