René's URL Explorer Experiment


Title: TaskPromiseConversion returns a Task with Status WaitingForActivation even when Promise is already resolved · Issue #641 · ClearFoundry/ClearScript · GitHub

Open Graph Title: TaskPromiseConversion returns a Task with Status WaitingForActivation even when Promise is already resolved · Issue #641 · ClearFoundry/ClearScript

X Title: TaskPromiseConversion returns a Task with Status WaitingForActivation even when Promise is already resolved · Issue #641 · ClearFoundry/ClearScript

Description: Hello, i have the following code: internal class Program { static void Main(string[] args) { //Promise Task conversion using (V8ScriptEngine engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableTaskPromiseConversion)) { engine.AddHostTy...

Open Graph Description: Hello, i have the following code: internal class Program { static void Main(string[] args) { //Promise Task conversion using (V8ScriptEngine engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableTa...

X Description: Hello, i have the following code: internal class Program { static void Main(string[] args) { //Promise Task conversion using (V8ScriptEngine engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableTa...

Opengraph URL: https://github.com/ClearFoundry/ClearScript/issues/641

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TaskPromiseConversion returns a Task with Status WaitingForActivation even when Promise is already resolved","articleBody":"Hello,\n\ni have the following code:\n\n```c#\ninternal class Program\n{\n    static void Main(string[] args)\n    {\n        //Promise Task conversion\n        using (V8ScriptEngine engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableTaskPromiseConversion))\n        {\n            engine.AddHostType(\"TestClass\", typeof(TestClass));\n\n            engine.Evaluate(\n                \"\"\"\n                TestClass.executeScriptAction( async (x) =\u003e \n                {\n                    return x.toLowerCase();\n                }\n                );\n                \"\"\"\n                );\n\n        }\n    }\n}\n\npublic static class TestClass\n{\n    public static void executeScriptAction(IJavaScriptObject obj)\n    {\n        //returns Task with Status -\u003e TaskStatus.WaitingForActivation\n        object result = obj.InvokeAsFunction(\"TestText\");\n\n        if (result is Task\u003cobject\u003e resultAsTask)\n        {\n            //Waits forever here\n            result = resultAsTask.GetAwaiter().GetResult();\n        }\n\n        Console.WriteLine(result);\n    }\n}\n```\n\nIf i run this example the `Promise` from js is converted into a `Task` with the status `WaitingForActivation` and the code is waiting infinite for the `Task` to finish.\nHow could i receive the result of the js-function?\n\n.csproj-File\n```xml\n\u003cProject Sdk=\"Microsoft.NET.Sdk\"\u003e\n\n  \u003cPropertyGroup\u003e\n    \u003cOutputType\u003eExe\u003c/OutputType\u003e\n    \u003cTargetFramework\u003enet8.0\u003c/TargetFramework\u003e\n    \u003cImplicitUsings\u003eenable\u003c/ImplicitUsings\u003e\n    \u003cNullable\u003eenable\u003c/Nullable\u003e\n  \u003c/PropertyGroup\u003e\n\n  \u003cItemGroup\u003e\n    \u003cPackageReference Include=\"Microsoft.ClearScript\" Version=\"7.4.5\" /\u003e\n  \u003c/ItemGroup\u003e\n\n\u003c/Project\u003e\n```\n\nWith kind regards,\n\nDavid","author":{"url":"https://github.com/DavidBal","@type":"Person","name":"DavidBal"},"datePublished":"2025-02-25T10:51:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/641/ClearScript/issues/641"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f52c971a-6205-8105-bca1-d7d85d5bf904
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA91C:5FEAE:14C1DC9:1CD432F:696A36CF
html-safe-nonceed74e19ebe50b334fb98ef4b9e2781baeeec3cf6167eb7455056a62468a308e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTFDOjVGRUFFOjE0QzFEQzk6MUNENDMyRjo2OTZBMzZDRiIsInZpc2l0b3JfaWQiOiI2MTU4OTg2MjY1MzI4NDk4MzgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0be10072fe6c468bed9490e0706f9b27e40c6b8fd6e053b94d8f3b663db759b3
hovercard-subject-tagissue:2877986787
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ClearFoundry/ClearScript/641/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cff3b5749352b06863f0799ff265f885a7a08432bb7607f4ad6c93e468dcf705/ClearFoundry/ClearScript/issues/641
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cff3b5749352b06863f0799ff265f885a7a08432bb7607f4ad6c93e468dcf705/ClearFoundry/ClearScript/issues/641
og:image:altHello, i have the following code: internal class Program { static void Main(string[] args) { //Promise Task conversion using (V8ScriptEngine engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableTa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDavidBal
hostnamegithub.com
expected-hostnamegithub.com
None321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538
turbo-cache-controlno-preview
go-importgithub.com/ClearFoundry/ClearScript git https://github.com/ClearFoundry/ClearScript.git
octolytics-dimension-user_id232231756
octolytics-dimension-user_loginClearFoundry
octolytics-dimension-repository_id90258367
octolytics-dimension-repository_nwoClearFoundry/ClearScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id90258367
octolytics-dimension-repository_network_root_nwoClearFoundry/ClearScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ClearFoundry/ClearScript/issues/641#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FClearFoundry%2FClearScript%2Fissues%2F641
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FClearFoundry%2FClearScript%2Fissues%2F641
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ClearFoundry%2FClearScript
Reloadhttps://github.com/ClearFoundry/ClearScript/issues/641
Reloadhttps://github.com/ClearFoundry/ClearScript/issues/641
Reloadhttps://github.com/ClearFoundry/ClearScript/issues/641
ClearFoundry https://github.com/ClearFoundry
ClearScripthttps://github.com/ClearFoundry/ClearScript
Notifications https://github.com/login?return_to=%2FClearFoundry%2FClearScript
Fork 161 https://github.com/login?return_to=%2FClearFoundry%2FClearScript
Star 2k https://github.com/login?return_to=%2FClearFoundry%2FClearScript
Code https://github.com/ClearFoundry/ClearScript
Issues 13 https://github.com/ClearFoundry/ClearScript/issues
Pull requests 6 https://github.com/ClearFoundry/ClearScript/pulls
Discussions https://github.com/ClearFoundry/ClearScript/discussions
Actions https://github.com/ClearFoundry/ClearScript/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/ClearFoundry/ClearScript/security
Please reload this pagehttps://github.com/ClearFoundry/ClearScript/issues/641
Insights https://github.com/ClearFoundry/ClearScript/pulse
Code https://github.com/ClearFoundry/ClearScript
Issues https://github.com/ClearFoundry/ClearScript/issues
Pull requests https://github.com/ClearFoundry/ClearScript/pulls
Discussions https://github.com/ClearFoundry/ClearScript/discussions
Actions https://github.com/ClearFoundry/ClearScript/actions
Security https://github.com/ClearFoundry/ClearScript/security
Insights https://github.com/ClearFoundry/ClearScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/ClearFoundry/ClearScript/issues/641
New issuehttps://github.com/login?return_to=https://github.com/ClearFoundry/ClearScript/issues/641
TaskPromiseConversion returns a Task with Status WaitingForActivation even when Promise is already resolvedhttps://github.com/ClearFoundry/ClearScript/issues/641#top
https://github.com/ClearScriptLib
enhancementhttps://github.com/ClearFoundry/ClearScript/issues?q=state%3Aopen%20label%3A%22enhancement%22
fixedhttps://github.com/ClearFoundry/ClearScript/issues?q=state%3Aopen%20label%3A%22fixed%22
https://github.com/DavidBal
https://github.com/DavidBal
DavidBalhttps://github.com/DavidBal
on Feb 25, 2025https://github.com/ClearFoundry/ClearScript/issues/641#issue-2877986787
ClearScriptLibhttps://github.com/ClearScriptLib
enhancementhttps://github.com/ClearFoundry/ClearScript/issues?q=state%3Aopen%20label%3A%22enhancement%22
fixedhttps://github.com/ClearFoundry/ClearScript/issues?q=state%3Aopen%20label%3A%22fixed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.