fsackur / ProfileAsync

Load your powershell profile asynchronously, so you can get to the prompt faster.
MIT License
2 stars 1 forks source link

do not dispose runspace #6

Closed fsackur closed 3 weeks ago

fsackur commented 3 weeks ago

See triage in #4

Turns out that any scriptblock created in the async section is associated with the runspace, and may well fail in some contexts - e.g. when events are involved (as is the case with custom PSReadLine handlers)