Skip to content

Commit

Permalink
Account for _Concurrency naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Nov 23, 2021
1 parent a9bbf19 commit d23a296
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var tokamakDOMDependencies: [Target.Dependency] = [
"OpenCombineJS",
]

#if compiler(>=5.5) && canImport(Concurrency)
#if compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))
tokamakDOMDependencies.append(
.product(
name: "JavaScriptEventLoop",
Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakCore/Modifiers/TaskModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if compiler(>=5.5) && canImport(Concurrency)
#if compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))

public extension View {
func task(
Expand Down
4 changes: 2 additions & 2 deletions Sources/TokamakDOM/DOMRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import OpenCombineJS
@_spi(TokamakCore) import TokamakCore
import TokamakStaticHTML

#if compiler(>=5.5) && canImport(Concurrency)
#if compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))
import JavaScriptEventLoop
#endif

Expand Down Expand Up @@ -91,7 +91,7 @@ final class DOMRenderer: Renderer {
rootRef = ref
appendRootStyle(ref)

#if compiler(>=5.5) && canImport(Concurrency)
#if compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))
JavaScriptEventLoop.installGlobalExecutor()
#endif

Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakDemo/Modifiers/TaskDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if os(WASI) && compiler(>=5.5) && canImport(Concurrency)
#if os(WASI) && compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))
import JavaScriptKit
import TokamakDOM

Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakDemo/TokamakDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct TokamakDemoView: View {
}
Section(header: Text("Modifiers")) {
NavItem("Shadow", destination: ShadowDemo())
#if os(WASI) && compiler(>=5.5) && canImport(Concurrency)
#if os(WASI) && compiler(>=5.5) && (canImport(Concurrency) || canImport(_Concurrency))
NavItem("Task", destination: TaskDemo())
#endif
}
Expand Down

0 comments on commit d23a296

Please sign in to comment.