File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,7 +308,26 @@ function getNativeModule(): Native {
308308
309309const native = getNativeModule ( ) ;
310310
311+ /**
312+ * Registers the current thread with the native module.
313+ *
314+ * This should be called on every thread that you want to capture stack traces from.
315+ *
316+ * @param threadName The name of the thread
317+ *
318+ * threadName defaults to the `threadId` if not provided.
319+ */
311320export function registerThread ( threadName ?: string ) : void ;
321+ /**
322+ * Registers the current thread with the native module.
323+ *
324+ * This should be called on every thread that you want to capture stack traces from.
325+ *
326+ * @param storageOrThread Either the name of the thread, or an object containing an AsyncLocalStorage instance and optional storage key.
327+ * @param threadName The name of the thread, if the first argument is an object.
328+ *
329+ * threadName defaults to the `threadId` if not provided.
330+ */
312331export function registerThread ( storageOrThread : AsyncStorageArgs | string , threadName ?: string ) : void ;
313332/**
314333 * Registers the current thread with the native module.
You can’t perform that action at this time.
0 commit comments