Class

org.scalajs.jsenv.ExternalJSEnv

AsyncExtRunner

Related Doc: package ExternalJSEnv

Permalink

class AsyncExtRunner extends AbstractExtRunner with AsyncJSRunner

Attributes
protected
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncExtRunner
  2. AsyncJSRunner
  3. AbstractExtRunner
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncExtRunner(classpath: CompleteClasspath, code: VirtualJSFile, logger: Logger, console: JSConsole)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def await(atMost: Duration): Unit

    Permalink

    Await completion of the started Run for the duration specified by atMost.

    Await completion of the started Run for the duration specified by atMost. Strictly equivalent to:

    Await.result(future, atMost)
    Definition Classes
    AsyncJSRunner
  6. final def await(): Unit

    Permalink

    Await completion of the started Run.

    Await completion of the started Run. Strictly equivalent to

    Await.result(future, Duration.Inf)
    Definition Classes
    AsyncJSRunner
  7. final def awaitOrStop(atMost: Duration): Unit

    Permalink

    Awaits completion of the started Run for the duration specified by atMost, or force it to stop.

    Awaits completion of the started Run for the duration specified by atMost, or force it to stop.

    If any exception is thrown while awaiting completion (including a TimeoutException, forces the runner to stop by calling stop() before rethrowing the exception.

    Strictly equivalent to:

    try await(atMost)
    finally stop()
    Definition Classes
    AsyncJSRunner
  8. val classpath: CompleteClasspath

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val code: VirtualJSFile

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  11. val console: JSConsole

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  12. final def customInitFiles(): Seq[VirtualJSFile]

    Permalink

    Custom initialization scripts, defined by the environment.

    Custom initialization scripts, defined by the environment.

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def future: Future[Unit]

    Permalink

    A future that completes when the associated run has terminated.

    A future that completes when the associated run has terminated.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getJSFiles(): Seq[VirtualJSFile]

    Permalink

    Get all files that are passed to VM (libraries and code)

    Get all files that are passed to VM (libraries and code)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  19. def getLibJSFiles(): Seq[VirtualJSFile]

    Permalink

    Get files that are a library (i.e.

    Get files that are a library (i.e. that do not run anything)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  20. def getVMArgs(): Seq[String]

    Permalink

    VM arguments excluding executable.

    VM arguments excluding executable. Override to adapt. Overrider is responsible to add additionalArgs.

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  21. def getVMEnv(): Map[String, String]

    Permalink

    VM environment.

    VM environment. Override to adapt.

    Default is sys.env and additionalEnv

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def initFiles(): Seq[VirtualJSFile]

    Permalink

    JS files used to setup VM

    JS files used to setup VM

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def isRunning(): Boolean

    Permalink

    Checks whether this async runner is still running.

    Checks whether this async runner is still running. Strictly equivalent to

    !future.isCompleted
    Definition Classes
    AsyncJSRunner
  26. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def pipeToConsole(in: InputStream, console: JSConsole): Unit

    Permalink

    pipe lines from input stream to JSConsole

    pipe lines from input stream to JSConsole

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  31. final def pipeVMData(vmInst: Process): Unit

    Permalink

    Pipe stdin and stdout from/to VM

    Pipe stdin and stdout from/to VM

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  32. final def sendJS(files: Seq[VirtualJSFile], out: Writer): Unit

    Permalink

    send a bunch of JS files to a writer

    send a bunch of JS files to a writer

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  33. final def sendJS(files: Seq[VirtualJSFile], out: OutputStream): Unit

    Permalink

    send a bunch of JS files to an output stream

    send a bunch of JS files to an output stream

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  34. def sendVMStdin(out: OutputStream): Unit

    Permalink

    Sends required data to VM Stdin (can throw)

    Sends required data to VM Stdin (can throw)

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  35. def start(): Future[Unit]

    Permalink

    Start the associated run and returns a Future that completes when the run terminates.

    Start the associated run and returns a Future that completes when the run terminates. The returned Future is equivalent to the one returned by future.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  36. def startVM(): Process

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractExtRunner
  37. def stop(): Unit

    Permalink

    Aborts the associated run.

    Aborts the associated run.

    There is no guarantee that the runner will be effectively terminated by the time this method returns. If necessary, this call can be followed by a call to await().

    If the run has already completed, this does nothing. Similarly, subsequent calls to stop() will do nothing.

    This method cannot be called before start() has been called.

    Definition Classes
    AsyncExtRunnerAsyncJSRunner
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def waitForVM(vmInst: Process): Unit

    Permalink

    Wait for the VM to terminate, verify exit code

    Wait for the VM to terminate, verify exit code

    Attributes
    protected
    Definition Classes
    AbstractExtRunner
    Exceptions thrown

    NonZeroExitException if VM returned a non-zero code

  44. def writeJSFile(file: VirtualJSFile, writer: Writer): Unit

    Permalink

    write a single JS file to a writer using an include fct if appropriate

    write a single JS file to a writer using an include fct if appropriate

    Attributes
    protected
    Definition Classes
    AbstractExtRunner

Inherited from AsyncJSRunner

Inherited from AbstractExtRunner

Inherited from AnyRef

Inherited from Any

Ungrouped