from typing import Callable, TypeVar
Request = TypeVar('Request')
Response = TypeVar('Response')


class Result(object):

    def __init__(self):
        self.value = None
        self.value_callback = None

    def run(self, data: object, output: Callable[[str, str], None], error:
        Callable[[str, Exception], None]) ->None:
        if self.value_callback:
            self.value_callback(data)
        else:
            self.value = data

    def sync(self):
        return self.value

30b060f8dd80efc6d80868d6e3f28e86137d2338
<mask token>


class Result(object):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Result(object):

    def __init__(self):
        self.value = None
        self.value_callback = None
    <mask token>
    <mask token>

<mask token>


class Result(object):

    def __init__(self):
        self.value = None
        self.value_callback = None

    def run(self, data: object, output: Callable[[str, str], None], error:
        Callable[[str, Exception], None]) ->None:
        if self.value_callback:
            self.value_callback(data)
        else:
            self.value = data

    def sync(self):
        return self.value

from typing import Callable, TypeVar
Request = TypeVar('Request')
Response = TypeVar('Response')


class Result(object):

    def __init__(self):
        self.value = None
        self.value_callback = None

    def run(self, data: object, output: Callable[[str, str], None], error:
        Callable[[str, Exception], None]) ->None:
        if self.value_callback:
            self.value_callback(data)
        else:
            self.value = data

    def sync(self):
        return self.value
