cloudflare / cloudflare/workerd
Detect startup phase vs handling a request
Open
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
Is there currently a way to detect whether we're in the startup phase vs handling a request, especially for **module workers**? Something like:
```javascript
// Hypothetical API
if (someAPI.isStartupPhase()) {
// Safe to use eval for optimization
}
```
If not, would this be something the workerd team would consider adding?
Contributor guide
Assessment
This issue has not been assessed yet.