consul/ui/packages/consul-ui/app/services/data-source/protocols/http/promise.js

14 lines
304 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Service from '@ember/service';
import { once } from 'consul-ui/utils/dom/event-source';
export default class PromiseService extends Service {
source(find, configuration) {
return once(find, configuration);
}
}