Skip to content
Snippets Groups Projects
Select Git revision
  • 39f74bd3893a96bba8e728f38a735387ce05ad2b
  • master default protected
  • e-infra2
  • ci-megalinter-speedup
  • egi-fixes
  • e-infra
  • envri-hub-new-aai
  • egi-b2drop-no-collapse
  • lfs
  • gpu_staging
  • resurrect-testing-ownloud
  • experiments/collab
  • update_claim_group_keys
  • envri-hub
  • enable_rtc
  • eosc-ui
  • future/jupyterhub-5.x
  • versioning
  • eosc-templating
  • staging1-raw-image
  • token-exchange
21 results

ansible.cfg

Blame
  • query.ts 704 B
    /**
     * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
     *
     * @author David Sehnal <david.sehnal@gmail.com>
     */
    
    import { Task, RuntimeContext } from 'mol-task'
    import { Structure } from '../structure'
    import Selection from './selection'
    
    // TODO: Query { (s: Structure): Computation<Selection> }
    
    interface Query { (s: Structure): Task<Selection>, provider: Query.Provider }
    function Query(q: Query.Provider): Query {
        const ret = (s => Task.create('Query', ctx => q(s, ctx))) as Query;
        ret.provider = q;
        return ret;
    }
    
    namespace Query {
        export interface Provider { (s: Structure, ctx: RuntimeContext): Promise<Selection> }
    }
    
    export default Query