pub fn poll_try_clone(&mut self) -> Poll<File, io::Error> {
        ::blocking_io(|| {
            let std = self.std().try_clone()?;
            Ok(File::from_std(std))
        })
    }
/// Create a new `File` instance that shares the same underlying file handle
/// as the existing `File` instance. Reads, writes, and seeks will affect both
/// File instances simultaneously.
///
/// # Examples
///
/// ```no_run
/// # extern crate tokio;
/// use tokio::prelude::Future;
///
/// fn main() {
///     let task = tokio::fs::File::create("foo.txt")
///         .and_then(|mut file| file.poll_try_clone())
///         .map(|clone| {
///             // do something with the clone
///             # println!("{:?}", clone);
///         }).map_err(|err| eprintln!("IO error: {:?}", err));
///
///     tokio::run(task);
/// }
/// ```
Create a new `File` instance that shares the same underlying file handle
as the existing `File` instance. Reads, writes, and seeks will affect both
File instances simultaneously.
Create a new ` File ` instance that shares the same underlying file handle as the existing ` File ` instance . Reads writes and seeks will affect both File instances simultaneously .
pub fn poll_try_clone(&mut self) -> Poll<File, io::Error> {
        ::blocking_io(|| {
            let std = self.std().try_clone()?;
            Ok(File::from_std(std))
        })
    }
pub fn poll_try_clone ( & mut self ) -> Poll < File , io :: Error > { :: blocking_io ( | | { let std = self . std ( ) . try_clone ( ) ? ; Ok ( File :: from_std ( std ) ) } ) }
Create a new `File` instance that shares the same underlying file handle
as the existing `File` instance.
Create a new ` File ` instance that shares the same underlying file handle as the existing ` File ` instance .
&mut self
examples
None
extern crate tokio;
use tokio::prelude::Future.

fn main() {
let task = tokio::fs::File::create("foo.txt")
.and_then(|mut file| file.poll_try_clone())
.map(|clone| {
do something with the clone
println!("{:?}", clone);
}).map_err(|err| eprintln!("IO error: {:?}", err)).


use tokio :: prelude :: Future . fn main () { let task = tokio :: fs :: File :: create ( " foo . txt " ) . and_then ( |mut file| file . poll_try_clone () ) . map ( |clone| { do something with the clone println! ( " { : ? } " clone ) ; } ) . map_err ( |err| eprintln! ( " IO error : { : ? } " err )) .