close method
void
close()
The close() method of the SharedWorkerGlobalScope interface
discards any tasks queued in the SharedWorkerGlobalScope's event loop,
effectively closing this particular scope.
Implementation
external void close();