1// Copyright 2018 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package osp 6 7import ( 8 "context" 9) 10 11func waitUntilDone(ctx context.Context) { 12 <-ctx.Done() 13} 14 15func done(ctx context.Context) bool { 16 return ctx.Err() != nil 17} 18