(C:\Users\anton\Desktop\Bot\index.js:29:37) at Client.emit (节点:事件:376:20) at MessageCreateAction.handle(C:\Users\anton\Desktop\Bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14) at MessageCreateAction.handle\WebSocketManager.js:384:31) at WebSo
我理解锁是如何工作的,多亏了这个职位。非常直截了当: if (lock_acquire('mymodule_long_operation')) { // ... }我的问题是,如果lock_release从未被击中,我的函数就会被“卡住”。所以,如果这里出了问题,我怎样才能让我的函数再次工作:
function
我有一本字典。我想数一数这些字典中有多少个元素"status“设置为"connecting”。connecting = 0 if self.servers[x]["status"] == "connecting": connecting += 1connecting = [1 if self.servers[x]["status"] == "closed" else 0 for x in self.ser