[This is preliminary documentation and is subject to change.]
Subscribes to a stream with a callback parameterized by worker id, epoch, and records.
Namespace: Microsoft.Research.Naiad
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public static Subscription Subscribe<R>( this Stream<R, Epoch> stream, Action<int, int, IEnumerable<R>> action )
Parameters
- stream
- Type: Microsoft.Research.NaiadStreamR, Epoch
input stream - action
- Type: SystemActionInt32, Int32, IEnumerableR
callback on worker id, epoch id, and records
Type Parameters
- R
- record type
Return Value
Type: Subscriptionsubscription for synchronization
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type StreamR, Epoch. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also