Skip to content

All content init taking a closure should allow the closure to throw with the init being rethrowing #187

@Frizlab

Description

@Frizlab

Everything is in the title.

An example:

/* Current Division init */
public init(@ContentBuilder<Content> content: () -> [Content]) {
   self.content = content()
}
/* Replacement */
public init(@ContentBuilder<Content> content: () throws -> [Content]) rethrows {
   self.content = try content()
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions