github.com/biogo/biogo@v1.0.4/concurrent/concurrent.go (about)

     1  // Copyright ©2011-2012 The bíogo Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package to apply a function over an array or stream of data.
     6  package concurrent
     7  
     8  // The Concurrent interface represents a processor that allows adding jobs and retrieving results
     9  type Concurrent interface {
    10  	Process(...interface{})
    11  	Result() (interface{}, error)
    12  }