xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
iasync_result.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
threading/wait_handle.hpp
"
6
#include "
any_object.hpp
"
7
#include "
interface.hpp
"
8
#include "
object.hpp
"
9
#include <memory>
10
12
namespace
xtd
{
25
class
iasync_result
interface_
{
26
public
:
28
37
[[nodiscard]]
virtual
auto
async_state
() const noexcept ->
xtd
::
any_object
= 0;
38
47
[[nodiscard]] virtual auto
async_wait_handle
() noexcept ->
xtd
::
threading
::wait_handle& = 0;
48
54
[[nodiscard]] virtual auto
completed_synchronously
() const noexcept ->
bool
= 0;
55
63
[[nodiscard]] virtual auto
is_completed
() const noexcept ->
bool
= 0;
65
};
66
}
any_object.hpp
Contains xtd::any_object class.
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::iasync_result
Represents the status of an asynchronous operation.
Definition
iasync_result.hpp:25
xtd::iasync_result::is_completed
virtual auto is_completed() const noexcept -> bool=0
Gets a value that indicates whether the asynchronous operation has completed.
xtd::iasync_result::async_wait_handle
virtual auto async_wait_handle() noexcept -> xtd::threading::wait_handle &=0
Gets a xtd::threading::wait_handle that is used to wait for an asynchronous operation to complete.
xtd::iasync_result::async_state
virtual auto async_state() const noexcept -> xtd::any_object=0
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
xtd::iasync_result::completed_synchronously
virtual auto completed_synchronously() const noexcept -> bool=0
Gets a value that indicates whether the asynchronous operation completed synchronously.
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
interface.hpp
Contains xtd::interface interface.
xtd::threading
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition
abandoned_mutex_exception.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
wait_handle.hpp
Contains xtd::threading::wait_handle class.
Generated on
for xtd by
Gammasoft
. All rights reserved.