📄 useWebWorkerFn/demo¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 4 |
| 📦 Imports | 6 |
| 📊 Variables & Constants | 1 |
| ⚡ Async/Await Patterns | 2 |
| 🟢 Vue Composition API | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/core/useWebWorkerFn/demo.vue
📦 Imports¶
| Name | Source |
|---|---|
useDateFormat |
@vueuse/core |
useTimestamp |
@vueuse/core |
useWebWorkerFn |
@vueuse/core |
computed |
vue |
nextTick |
vue |
shallowRef |
vue |
Variables & Constants¶
| Name | Type | Kind | Value | Exported |
|---|---|---|---|---|
data |
number |
let/var | shallowRef<number[] \| null>(null) |
✗ |
Async/Await Patterns¶
| Type | Function | Await Expressions | Promise Chains |
|---|---|---|---|
| async-function | baseSort |
nextTick() | none |
| async-function | workerSort |
nextTick(), workerFn() | none |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
computed |
computed | none | none |
Functions¶
heavyTask(): number[]¶
Returns: number[]
Calls:
Math.truncMath.randomArray.from({ length: 5_000_000 }).fill(undefined).mapnumbers.sortnumbers.slice
Code
baseSort(): Promise<void>¶
Returns: Promise<void>
Calls:
nextTick (from vue)heavyTask
Code
workerSort(): Promise<void>¶
Returns: Promise<void>
Calls:
nextTick (from vue)workerFn
Code
Internal helpers¶
Declared inside another function in this file.
randomNumber(): number¶
Returns: number
Calls:
Math.trunc
Generated by Syntax Scribe