import { Observable } from '../Observable';
import { innerFrom } from './innerFrom';
import { EMPTY } from './empty';
export function using(resourceFactory, observableFactory) {
return new Observable(function (subscriber) {
var resource = resourceFactory();
var result = observableFactory(resource);
var source = result ? innerFrom(result) : EMPTY;
source.subscribe(subscriber);
return function () {
if (resource) {
resource.unsubscribe();
}
};
});
}
//# sourceMappingURL=using.js.map
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tobarrientos2/neo4j-mcpserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server