Adding Delay to DevToolsLayer for Trace Visibility in Effect Programs
Why is it needed to add a delay on the DevToolsLayer ? If I remove it in the playground, traces are no longer visible in the trace viewer..
Same goes for the vscode extension, adding
For instance, given this program and two versions of a DevToolLayer:
Then executing the program with
Whereas running it with the
Same goes for the vscode extension, adding
Layer.effectDiscard(Effect.sleep(100)) is required on our app to make traces visible..For instance, given this program and two versions of a DevToolLayer:
DevToolsLive and DevToolsLiveDelayed:Then executing the program with
DevToolsLive never stops and the trace is not visible in the vscode extension:Whereas running it with the
DevToolsLiveDelayed works fine (program exits and trace visible)