(callback: () => T)
| 220 | } |
| 221 | |
| 222 | export function unstable_wrapCallback<T>(callback: () => T): () => T { |
| 223 | const parentPriorityLevel = currentPriorityLevel_DEPRECATED; |
| 224 | return () => { |
| 225 | const previousPriorityLevel = currentPriorityLevel_DEPRECATED; |
| 226 | currentPriorityLevel_DEPRECATED = parentPriorityLevel; |
| 227 | try { |
| 228 | return callback(); |
| 229 | } finally { |
| 230 | currentPriorityLevel_DEPRECATED = previousPriorityLevel; |
| 231 | } |
| 232 | }; |
| 233 | } |
| 234 | |
| 235 | export function unstable_forceFrameRate() {} |
| 236 |
nothing calls this directly
no test coverage detected