---
title: "callAsFunction(_:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/temporaltransformer/callasfunction(_:eventhandler:)"
---

# callAsFunction(_:eventHandler:)

Performs the transformation on an input sequence.

## Declaration

```swift
func callAsFunction<S>(_ input: S, eventHandler: EventHandler? = nil) async throws -> Self.OutputSequence where S : TemporalSequence, Self.Input == S.Feature
```

## Parameters

- `input`: The input temporal sequence.
- `eventHandler`: An event handler.

## Return Value

Return Value An async sequence produced by applying the transformation to the input.

## See Also

### Transforming and predicting

- [callAsFunction(to:eventHandler:)](createmlcomponents/temporaltransformer/callasfunction(to:eventhandler:).md)
- [prediction(from:)](createmlcomponents/temporaltransformer/prediction(from:).md)
