Title: Impossible to open Runspace using OpenAsync and return after initial session state is loaded · Issue #8012 · PowerShell/PowerShell · GitHub
Open Graph Title: Impossible to open Runspace using OpenAsync and return after initial session state is loaded · Issue #8012 · PowerShell/PowerShell
X Title: Impossible to open Runspace using OpenAsync and return after initial session state is loaded · Issue #8012 · PowerShell/PowerShell
Description: If you create a Runspace and want to use OpenAsync to open that runspace asynchronously, while not continuing on to other code until the runspace opened and initialized, it's not possible to do so. If instead of invoking OpenAsync, you i...
Open Graph Description: If you create a Runspace and want to use OpenAsync to open that runspace asynchronously, while not continuing on to other code until the runspace opened and initialized, it's not possible to do so....
X Description: If you create a Runspace and want to use OpenAsync to open that runspace asynchronously, while not continuing on to other code until the runspace opened and initialized, it's not possible to do...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8012
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Impossible to open Runspace using OpenAsync and return after initial session state is loaded","articleBody":"If you create a Runspace and want to use OpenAsync to open that runspace asynchronously, while not continuing on to other code until the runspace opened _and_ initialized, it's not possible to do so. If instead of invoking OpenAsync, you invoke Open, that API won't return until after the runspace is both open and initialized with the initial session state.\r\n\r\nSteps to reproduce\r\n------------------\r\nhttps://stackoverflow.com/questions/17712240/why-does-runspace-openasync-ignore-initialsessionstate\r\n\r\nExpected behavior\r\n-----------------\r\nThere must be a way to use OpenAsync with an event handler that triggers TaskCompletionSource\u003c>.TrySetResult once the initialization is complete.\r\n\r\nActual behavior\r\n---------------\r\nThis is not possible today.\r\n","author":{"url":"https://github.com/KirkMunro","@type":"Person","name":"KirkMunro"},"datePublished":"2018-10-12T16:15:08Z","url":"https://github.com/PowerShell/PowerShell/issues/8012"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8d1b3e67-0886-88e3-8e1b-fbeae25deed0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8D2:C35DD:27475BB:36AC416:6AFD4A26 |
| html-safe-nonce | 057e30c1f67281ca628bf13da72e35ba42cdf32d612d0b4a83639a96e5fb75ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEQyOkMzNUREOjI3NDc1QkI6MzZBQzQxNjo2QUZENEEyNiIsInZpc2l0b3JfaWQiOiI3MDY1NDMzNTQ2ODk4MDk4NzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b02672f18c2ade8ac43f044493abe59effd0d7eec1d9f8de496b75bfc316c1b |
| hovercard-subject-tag | issue:369618068 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/8012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2732bc4824ff7ece6c26fe330cbb1b1bf2ae66f84dfb3e2c24e60a9741315373/PowerShell/PowerShell/issues/8012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2732bc4824ff7ece6c26fe330cbb1b1bf2ae66f84dfb3e2c24e60a9741315373/PowerShell/PowerShell/issues/8012 |
| og:image:alt | If you create a Runspace and want to use OpenAsync to open that runspace asynchronously, while not continuing on to other code until the runspace opened and initialized, it's not possible to do so.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KirkMunro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width