alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
630 stars 113 forks source link

using of Sync api #248

Open ehsan2003 opened 2 years ago

ehsan2003 commented 2 years ago

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: