1 // Copyright 2009 The Go 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.
12 // An aborter aborts the thread's current computation, usually
13 // passing the error to a waiting thread.
14 type aborter
interface {
18 type ogleAborter
chan os
.Error
20 func (a ogleAborter
) Abort(err os
.Error
) {
25 // try executes a computation; if the computation Aborts, try returns
26 // the error passed to abort.
27 func try(f
func(a aborter
)) os
.Error
{
28 a
:= make(ogleAborter
)