webf icon indicating copy to clipboard operation
webf copied to clipboard

JSRuntime lifetime managed by WebFPage lifetime

Open david-clang opened this issue 7 months ago • 2 comments

Prior to WebF 0.16.0 "Add Dedicated Threading support.", the JSRuntime lifecycle was managed by the DartIsolateContext lifecycle.

ui_thread

But in Dedicated threads, the JSRuntime life cycle must be managed by the WebFPage life cycle, and the runtime_ redundancy created in DartIsolateContext.

Therefore, JSRuntime lifetime managed by WebFPage lifetime in UI thread mode is more uniform

page_lifetime

david-clang avatar Jul 14 '24 11:07 david-clang