Skip to content

Commit 7a74538

Browse files
committed
update doco
1 parent 5970558 commit 7a74538

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

Excel-REPL/MainClass.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ public void AutoOpen()
2323
ExcelIntegration.RegisterUnhandledExceptionHandler(
2424
ex => "!!! EXCEPTION: " + ex.ToString());
2525
}
26-
public static object SleepAsync(string ms, string message)
27-
{
28-
return ExcelAsyncUtil.Run("SleepAsync", new Object[] {ms, message}, delegate
29-
{
30-
//Debug.Print("{1:HH:mm:ss.fff} Sleeping for {0} ms", ms, DateTime.Now);
31-
Thread.Sleep(int.Parse(ms));
32-
//Debug.Print("{1:HH:mm:ss.fff} Done sleeping {0} ms", ms, DateTime.Now);
33-
return "Woke Up at " + DateTime.Now.ToString("1:HH:mm:ss.fff") + message;
34-
});
35-
}
36-
26+
3727
public static void InsertNewWorksheet(String name)
3828
{
3929
NetOffice.ExcelApi.Application app = NetOffice.ExcelApi.Application.GetActiveInstance();

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ Excel REPL uses ClojureCLR which has less support than the main JVM implementati
110110
(require '[clojure.tools.nrepl :as nrepl])
111111
(require '[clojure.data.drawbridge-client :as drawbridge-client]) ;Adds Http support to Nrepl
112112

113-
(def tcp-client (nrepl/client (nrepl/url-connect "nrepl://localhost:50000")))
114-
(def http-client (nrepl/client (nrepl/url-connect "http://some.server/drawbridge-client")))
113+
(def timeout 10000); 10 seconds
114+
(def tcp-client (nrepl/client (nrepl/url-connect "nrepl://localhost:50000")) timeout)
115+
(def http-client (nrepl/client (nrepl/url-connect "http://some.server/drawbridge-client")) timeout)
115116

116117
(defn remote-eval-str
117118
"evaluates string on remote repl"

0 commit comments

Comments
 (0)