| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lib/python3.6/site-packages/s3transfer/__pycache__/ |
Upload File : |
3
�b`�R � @ sB d dl mZ d dlmZ d dlZd dlZd dlZd dlZd dlm Z d dlm
Z
d dlmZm
Z
d dlmZ d dlmZ eje�ZG d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zeddg�Zed�Z ed �Z!dS )!� )�futures)�
namedtupleN)�MAXINT)�six)�CancelledError�TransferNotDoneError)�FunctionContainer)�
TaskSemaphorec @ s0 e Zd Zedd� �Zdd� Zdd� Zdd� Zd S )
�BaseTransferFuturec C s t d��dS )z-The metadata associated to the TransferFuture�metaN)�NotImplementedError)�self� r �8/tmp/pip-build-t4pk6ic9/s3transfer/s3transfer/futures.pyr s zBaseTransferFuture.metac C s t d��dS )zmDetermines if a TransferFuture has completed
:returns: True if completed. False, otherwise.
zdone()N)r )r
r r r �done$ s zBaseTransferFuture.donec C s t d��dS )z�Waits until TransferFuture is done and returns the result
If the TransferFuture succeeded, it will return the result. If the
TransferFuture failed, it will raise the exception associated to the
failure.
zresult()N)r )r
r r r �result+ s zBaseTransferFuture.resultc C s t d��dS )z6Cancels the request associated with the TransferFuturezcancel()N)r )r
r r r �cancel4 s zBaseTransferFuture.cancelN)�__name__�
__module__�__qualname__�propertyr r r r r r r r r
s r
c @ s0 e Zd Zedd� �Zedd� �Zedd� �ZdS )�BaseTransferMetac C s t d��dS )z*The call args used in the transfer request� call_argsN)r )r
r r r r : s zBaseTransferMeta.call_argsc C s t d��dS )zThe unique id of the transfer�transfer_idN)r )r
r r r r ? s zBaseTransferMeta.transfer_idc C s t d��dS )z.A dictionary that requesters can store data in�user_contextN)r )r
r r r r D s zBaseTransferMeta.user_contextN)r r r r r r r r r r r r 9 s r c @ sB e Zd Zddd�Zedd� �Zdd� Zdd � Zd
d� Zdd
� Z dS )�TransferFutureNc C s0 || _ |dkrt� | _ || _|dkr,t� | _dS )a� The future associated to a submitted transfer request
:type meta: TransferMeta
:param meta: The metadata associated to the request. This object
is visible to the requester.
:type coordinator: TransferCoordinator
:param coordinator: The coordinator associated to the request. This
object is not visible to the requester.
N)�_meta�TransferMeta�_coordinator�TransferCoordinator)r
r Zcoordinatorr r r �__init__K s zTransferFuture.__init__c C s | j S )N)r )r
r r r r ^ s zTransferFuture.metac C s
| j j� S )N)r r )r
r r r r b s zTransferFuture.donec C s>