Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tiny-worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
tiny-worker
Commits
9f51187a
Commit
9f51187a
authored
9 years ago
by
Jason Mulligan
Browse files
Options
Downloads
Patches
Plain Diff
Updating README
parent
cd544cbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-0
9 additions, 0 deletions
README.md
with
9 additions
and
0 deletions
README.md
+
9
−
0
View file @
9f51187a
...
@@ -31,9 +31,18 @@ Message handler, accepts an `Event`
...
@@ -31,9 +31,18 @@ Message handler, accepts an `Event`
Error handler, accepts an
`Event`
Error handler, accepts an
`Event`
## API
## API
#### addEventListener(event, fn)
Adds an event listener
#### close()
Terminates the
`Worker`
, same as
`terminate()`
#### postMessage()
#### postMessage()
Broadcasts a message to the
`Worker`
Broadcasts a message to the
`Worker`
#### terminate()
Terminates the
`Worker`
## License
## License
Copyright (c) 2015 Jason Mulligan
Copyright (c) 2015 Jason Mulligan
Licensed under the BSD-3 license
Licensed under the BSD-3 license
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment