You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cancel.rs
    path of file: ./repos/incubator-horaedb/src/components/future_ext/src
    
    the code of the file until where you have to start completion: // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (t
    
    fn test_cancel_future() {
        let runtime = rt();
        let runtime_clone = runtime.clone();

        runtime.block_on(async move {
            let done = Arc::new(Barrier::new(2));
            let done_captured = Arc::clone(&done);

            let fut = CancellationSafeFuture::new(
                async move {
                    done_captured.wait().await;
                },
                "test",
                runtime_clone,
            );

            drop(fut);

            tokio::time::timeout(Duration::from_secs(5), done.wait())
                .await
                .unwrap();
        });
    }