/// <summary> /// Starts the REPL engine. /// </summary> /// <param name="script">The script to run at startup.</param> /// <returns>Returns the REPL engine.</returns> public IReplEngine Start(string script = null) { var state = _stateStream.First(); if (state != Core.State.Stopped && state != Core.State.Unknown && state != Core.State.Faulted) { return(this); } _stateStream.OnNext(Core.State.Starting); _startupScript = script; _replProcess = StartProcess(); return(this); }
public void Ok() { var subj = new BehaviorSubject <int>(5); subj.First(); }