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