milkio 0.2.18 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -211,8 +211,8 @@ export function defineHttpHandler(app: MilkioApp, options: ExecuteHttpServerOpti
|
|
|
211
211
|
} catch (error) {
|
|
212
212
|
const result = handleCatchError(error, executeId);
|
|
213
213
|
controller.write(`data:@${JSON.stringify(TSON.encode(result))}\n\n`);
|
|
214
|
-
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
215
214
|
}
|
|
215
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
216
216
|
controller.close();
|
|
217
217
|
},
|
|
218
218
|
cancel() {
|
|
@@ -238,8 +238,8 @@ export function defineHttpHandler(app: MilkioApp, options: ExecuteHttpServerOpti
|
|
|
238
238
|
} catch (error) {
|
|
239
239
|
const result = handleCatchError(error, executeId);
|
|
240
240
|
controller.enqueue(`data:@${JSON.stringify(TSON.encode(result))}\n\n`);
|
|
241
|
-
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
242
241
|
}
|
|
242
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
243
243
|
controller.close();
|
|
244
244
|
},
|
|
245
245
|
cancel() {
|