Skip to content

how does async work / how is async going to work in starlight #49

Answered by playXE
andrieshiemstra asked this question in Q&A
Discussion options

You must be logged in to vote

@andrieshiemstra sorry for not answering your questions for too long, I have been busy for these few days. To be sure it is GC problem debugging is needed or you can enable conservative scanning for GC references in GcParams or using sl --conservative-marking It will check stack and registers for potential GC pointers so even If you didn't root some value GC will scan it.

Can i regard a JsValue as a Handle to a GcPointer which means that as long as i don't drop all the JsValues the contained object will not be garbage collected? or do i need to do something extra to prevent garbage collection of an Object like my JsPromise?

Simply use letroot!(val = stack, JsValue::<smth>) and GC will s…

Replies: 14 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andrieshiemstra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@playXE
Comment options

@playXE
Comment options

Comment options

You must be logged in to vote
2 replies
@playXE
Comment options

@playXE
Comment options

Comment options

You must be logged in to vote
1 reply
@andrieshiemstra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #48 on June 20, 2021 07:07.