mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Concurrency] Throwing continuation type should be typed as SwiftError
This commit is contained in:
@@ -214,7 +214,7 @@ struct AsyncContinuationTypeImpl<
|
||||
AsyncSignature<void(ArgTys...), /*throws=*/true>> {
|
||||
|
||||
using type = SWIFT_CC(swiftasync) void(SWIFT_ASYNC_CONTEXT AsyncContext *,
|
||||
SWIFT_CONTEXT void *);
|
||||
SWIFT_CONTEXT SwiftError *);
|
||||
};
|
||||
|
||||
template <class... ArgTys>
|
||||
|
||||
@@ -1709,7 +1709,8 @@ static DistributedAccessorSignature::ContinuationType
|
||||
|
||||
SWIFT_CC(swiftasync)
|
||||
static void ::swift_distributed_execute_target_resume(
|
||||
SWIFT_ASYNC_CONTEXT AsyncContext *context, SWIFT_CONTEXT void *error) {
|
||||
SWIFT_ASYNC_CONTEXT AsyncContext *context,
|
||||
SWIFT_CONTEXT SwiftError *error) {
|
||||
auto parentCtx = context->Parent;
|
||||
auto resumeInParent =
|
||||
reinterpret_cast<TargetExecutorSignature::ContinuationType *>(
|
||||
|
||||
Reference in New Issue
Block a user