@rbxts/types 1.0.582 → 1.0.583

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.
@@ -2227,16 +2227,18 @@ declare namespace task {
2227
2227
  /** Yields the calling script and queues it for serial execution following the completion of the parallel execution phase of the frame. */
2228
2228
  function synchronize(): void;
2229
2229
  /** Defers the passed thread or function to be resumed at the end of the current resumption cycle. */
2230
- function defer<T extends Array<any>>(callback: (...args: T) => void, ...args: T): void;
2231
- function defer(thread: thread, ...args: Array<unknown>): void;
2230
+ function defer<T extends Array<any>>(callback: (...args: T) => void, ...args: T): thread;
2231
+ function defer(thread: thread, ...args: Array<unknown>): thread;
2232
2232
  /** Delays the passed thread or function until the given duration has elapsed. Resumes on engine Heartbeat. */
2233
- function delay<T extends Array<any>>(duration: number, callback: (...args: T) => void, ...args: T): void;
2234
- function delay(duration: number, thread: thread, ...args: Array<unknown>): void;
2233
+ function delay<T extends Array<any>>(duration: number, callback: (...args: T) => void, ...args: T): thread;
2234
+ function delay(duration: number, thread: thread, ...args: Array<unknown>): thread;
2235
2235
  /** Resumes the passed thread or function instantly using the engine's scheduler. */
2236
- function spawn<T extends Array<any>>(callback: (...args: T) => void, ...args: T): void;
2237
- function spawn(thread: thread, ...args: Array<unknown>): void;
2236
+ function spawn<T extends Array<any>>(callback: (...args: T) => void, ...args: T): thread;
2237
+ function spawn(thread: thread, ...args: Array<unknown>): thread;
2238
2238
  /** Delay the current thread until the given duration has elasped. Resumes on engine Heartbeat. */
2239
2239
  function wait(duration?: number): number;
2240
+ /** Cancels a thread, preventing it from being resumed. */
2241
+ function cancel(thread: thread): void;
2240
2242
  }
2241
2243
 
2242
2244
  interface GettableCores {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.582",
3
+ "version": "1.0.583",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },