repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.6.17
[poolifier.git]
/
src
/
worker
/
worker-functions.ts
diff --git
a/src/worker/worker-functions.ts
b/src/worker/worker-functions.ts
index 28b9ed5446b5525c6904c1ed7a3a9916064f9545..9232e58f9e9b4b9000124621e16f083af07c154d 100644
(file)
--- a/
src/worker/worker-functions.ts
+++ b/
src/worker/worker-functions.ts
@@
-1,8
+1,8
@@
/**
* Worker synchronous function that can be executed.
*
/**
* Worker synchronous function that can be executed.
*
- * @typeParam Data - Type of data sent to the worker. This can only be s
erializ
able data.
- * @typeParam Response - Type of execution response. This can only be s
erializ
able data.
+ * @typeParam Data - Type of data sent to the worker. This can only be s
tructured-clone
able data.
+ * @typeParam Response - Type of execution response. This can only be s
tructured-clone
able data.
*/
export type WorkerSyncFunction<Data = unknown, Response = unknown> = (
data?: Data
*/
export type WorkerSyncFunction<Data = unknown, Response = unknown> = (
data?: Data
@@
-12,8
+12,8
@@
export type WorkerSyncFunction<Data = unknown, Response = unknown> = (
* Worker asynchronous function that can be executed.
* This function must return a promise.
*
* Worker asynchronous function that can be executed.
* This function must return a promise.
*
- * @typeParam Data - Type of data sent to the worker. This can only be s
erializ
able data.
- * @typeParam Response - Type of execution response. This can only be s
erializ
able data.
+ * @typeParam Data - Type of data sent to the worker. This can only be s
tructured-clone
able data.
+ * @typeParam Response - Type of execution response. This can only be s
tructured-clone
able data.
*/
export type WorkerAsyncFunction<Data = unknown, Response = unknown> = (
data?: Data
*/
export type WorkerAsyncFunction<Data = unknown, Response = unknown> = (
data?: Data
@@
-23,8
+23,8
@@
export type WorkerAsyncFunction<Data = unknown, Response = unknown> = (
* Worker function that can be executed.
* This function can be synchronous or asynchronous.
*
* Worker function that can be executed.
* This function can be synchronous or asynchronous.
*
- * @typeParam Data - Type of data sent to the worker. This can only be s
erializ
able data.
- * @typeParam Response - Type of execution response. This can only be s
erializ
able data.
+ * @typeParam Data - Type of data sent to the worker. This can only be s
tructured-clone
able data.
+ * @typeParam Response - Type of execution response. This can only be s
tructured-clone
able data.
*/
export type WorkerFunction<Data = unknown, Response = unknown> =
| WorkerSyncFunction<Data, Response>
*/
export type WorkerFunction<Data = unknown, Response = unknown> =
| WorkerSyncFunction<Data, Response>
@@
-36,8
+36,8
@@
export type WorkerFunction<Data = unknown, Response = unknown> =
* The key is the name of the function.
* The value is the function itself.
*
* The key is the name of the function.
* The value is the function itself.
*
- * @typeParam Data - Type of data sent to the worker. This can only be s
erializ
able data.
- * @typeParam Response - Type of execution response. This can only be s
erializ
able data.
+ * @typeParam Data - Type of data sent to the worker. This can only be s
tructured-clone
able data.
+ * @typeParam Response - Type of execution response. This can only be s
tructured-clone
able data.
*/
export type TaskFunctions<Data = unknown, Response = unknown> = Record<
string,
*/
export type TaskFunctions<Data = unknown, Response = unknown> = Record<
string,