mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: judge: add concurrency control to task consumer (#719)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
8b10f51430
commit
6b759cbe63
9 files changed
+130
-83
No files matched your search
@@ -34,7 +34,7 @@ async function startEdit(filename, value, fileCategory = 'file') {
|
||||
});
|
||||
const action = await promise;
|
||||
value = (editor.value() as string).replace(/\r\n/g, '\n');
|
||||
editor.destory();
|
||||
editor.destroy();
|
||||
if (action !== 'ok') return null;
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user