<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Event",
  "identifier" : "/documentation/Event/EventLoop/shared",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Event"
    ],
    "preciseIdentifier" : "s:5Event0A4LoopC6sharedACvpZ"
  },
  "title" : "shared"
}
-->

# shared

A process-wide shared event loop.

```
static let shared: EventLoop
```

## Discussion

Initialized lazily on first access and retained for the lifetime of the process.
Use this when you have no reason to prefer an isolated loop. For tests that want
freshness or subsystems that want independence, create a fresh `EventLoop()`.