How to run it embeddable, i.e. can I load unsafe code in existing typescript codebase using it?

What is the lifecycle of the sandbox? Can we pause, step-by-step, pause and resume executed code?