From 9f51187ab1942cdf7101292132157fc01b597b40 Mon Sep 17 00:00:00 2001 From: Jason Mulligan <jason.mulligan@avoidwork.com> Date: Tue, 29 Sep 2015 20:05:49 -0400 Subject: [PATCH] Updating README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 27d724f..60903e7 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,18 @@ Message handler, accepts an `Event` Error handler, accepts an `Event` ## API +#### addEventListener(event, fn) +Adds an event listener + +#### close() +Terminates the `Worker`, same as `terminate()` + #### postMessage() Broadcasts a message to the `Worker` +#### terminate() +Terminates the `Worker` + ## License Copyright (c) 2015 Jason Mulligan Licensed under the BSD-3 license -- GitLab