Source: lib/util/i_releasable.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2016 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. goog.provide('shaka.util.IReleasable');
  7. /**
  8. * An interface to standardize how objects release internal references
  9. * synchronously. If an object needs to asynchronously release references, then
  10. * it should use 'shaka.util.IDestroyable'.
  11. *
  12. * @interface
  13. * @exportInterface
  14. */
  15. shaka.util.IReleasable = class {
  16. /**
  17. * Request that this object release all internal references.
  18. *
  19. * @exportInterface
  20. */
  21. release() {}
  22. };